# Box shadow

*noun*

say it: **“BOKS SHAD-oh”** **/bɒks ˈʃædoʊ/**

A CSS property that draws a shadow around an element's box, set by how far the shadow moves sideways and down, how blurry it is and its color.

## What does `box-shadow` do?

`box-shadow` draws a shadow around an element: sideways offset, downward offset, blur and color.

```css
.card { box-shadow: 0 2px 8px rgb(0 0 0 / 15%); }
```

## In a sentence

- “A soft **box shadow** under each product card makes the cards look like they float above the page.”

Level: Apprentice · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/box-shadow
