O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding Drop Shadows to Other Elements

The text-shadow property allows you to apply shadows to an element’s text, but the box-shadow property allows you to add shadows to the elements themselves (Image and Image). Although based on the same basic set of attributes, box-shadow allows two more optional attributes—the inset keyword attribute, and the spread attribute to expand or shrink the shadow.

Image This document contains three divs that demonstrate using box-shadow ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required