Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Foundations Backgrounds and Borders Box Shadows

Nick Rohan
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
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.,