1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-23 22:25:44 +02:00

feat: Update contents

This commit is contained in:
Phuoc Nguyen
2023-08-19 19:27:15 +07:00
parent f7af6da9e4
commit 71d51b358a
318 changed files with 15536 additions and 6884 deletions

77
contents/stamp-border.mdx Normal file
View File

@@ -0,0 +1,77 @@
---
category: Display
created: '2020-01-16'
description: Create stamp border with CSS
keywords: css radial gradient, css stamp border
thumbnail: /assets/css-layout/thumbnails/stamp-border.png
title: Stamp border
---
## HTML
```html
<div class="stamp-border">
<div class="stamp-border__content"></div>
</div>
```
## CSS
```css
.stamp-border {
/* Background */
background-color: #d1d5db;
background-image: radial-gradient(#fff 50%, transparent 50%);
background-position: -0.25rem -0.25rem;
background-repeat: repeat;
background-size: 0.5rem 0.5rem;
/* Spacing */
padding: 0.25rem;
}
.stamp-border__content {
/* Background */
background-color: #d1d5db;
height: 100%;
width: 100%;
}
```
<Playground>
```css styles.css hidden
body {
height: 24rem;
}
.stamp-border {
/* Background */
background-color: #d1d5db;
background-image: radial-gradient(#fff 50%, transparent 50%);
background-position: -0.25rem -0.25rem;
background-repeat: repeat;
background-size: 0.5rem 0.5rem;
/* Spacing */
padding: 0.25rem;
/* Demo */
height: 100%;
width: 100%;
}
.stamp-border__content {
/* Background */
background-color: #d1d5db;
height: 100%;
width: 100%;
}
```
```html index.html hidden
<div class="stamp-border">
<div class="stamp-border__content"></div>
</div>
```
</Playground>