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 trialNick Rohan
Courses Plus Student 6,255 Pointsbox-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
Treehouse TeacherHi Nick Rohan,
Take a look at this forum tip I made explaining the spread value in box-shadow
.
Hope this helps! :)
Andrew Harper
17,150 PointsGood explanation. Can't thank you guys enough for all the work you do.
nik
8,925 PointsThink 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
8,438 PointsGreat explanation of this, Guil.
Also, I had no idea you could apply more than one shadow to an element. Thanks.,
Nick Rohan
Courses Plus Student 6,255 PointsNick Rohan
Courses Plus Student 6,255 PointsAwesome, very helpful. Thanks Guil!