Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Foundations Backgrounds and Borders Box Shadows

Nick Rohan
PLUS
Nick Rohan
Courses Plus Student 6,255 Points

box-shadow property question

I don't understand the purpose of the spread value in the box-shadow property. Can't you get the same effect by changing the h-shadow and v-shadow values?

4 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Nick Rohan,

Take a look at this forum tip I made explaining the spread value in box-shadow.

Hope this helps! :)

Andrew Harper
Andrew Harper
17,150 Points

Good explanation. Can't thank you guys enough for all the work you do.

Think of the spread of more like how much the shadow will bur. It's similar to a gaussian effect. Using spread will simplify softening the look of the shadow. Just specifying h and v values would only adjust how far the shadow drops back.

Bob Passaro
Bob Passaro
8,438 Points

Great explanation of this, Guil.

Also, I had no idea you could apply more than one shadow to an element. Thanks.,