Multiple elements with one shadow with CSS

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI8 min

About this video

Shows how to give several nested elements one shared shadow using the CSS filter property instead of a separate box-shadow on each. Covers filter drop-shadow, text shadows, and combining filters such as grayscale and blur. Aimed at developers and designers who already write CSS.

What you’ll learn

  • Apply one shared drop-shadow to nested elements with the CSS filter property
  • Compare filter drop-shadow with box-shadow for shadows on grouped items
  • Combine filters such as grayscale and blur in a single CSS rule