One-liner to fix shadows, borders, and gradients that break multiple lines

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

ShortIntermediateWeb DesignUI1 min

About this video

A short CSS tutorial showing how the box-decoration-break property keeps backgrounds, borders and shadows on inline elements that wrap across multiple lines.

What you’ll learn

  • Apply box-decoration-break: clone to inline elements that wrap across lines