# CSS box-shadow can fake Win95 bevels

> Four inset box-shadows are enough to recreate the classic raised/sunken border look without any images.

- Author: Braveen Nagendram
- Published: 2026-06-20
- Tags: css, ui
- Canonical: https://www.braveen.me/til/css-bevel/

You can recreate the Win95 raised border with just `box-shadow`:

```css
.raised {
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}
```

Flip the sign on all four to get the sunken (pressed) variant.
