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.
.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
Updated