# Multiple Borders

> Stack as many borders as you like with comma-separated box-shadow spreads. No extra markup.

- Category: [CSS Box Shadows](https://copy-css.com/category/shadows)
- Tags: border, rings, spread, outline, stacked, box-shadow
- Live preview: https://copy-css.com/snippets/multi-border-shadow
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="rings"></div>
```

## CSS

```css
.rings {
  --gap: #fff7ed; /* match the background behind it */
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #f97316;
  box-shadow:
    0 0 0 6px var(--gap),
    0 0 0 12px #fb923c,
    0 0 0 18px var(--gap),
    0 0 0 24px #fdba74;
}
```

## Notes

- This CSS Multiple Borders is 12 lines of pure CSS (0.3 KB) with no JavaScript and no dependencies. It uses box shadows and custom properties.
- Customize with: `--gap`.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
