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 Basics (2014) Enhancing the Design With CSS Box Shadows

Patrick Vanegas
Patrick Vanegas
6,971 Points

Is it possible to also stack up multiple box-shadow lines like the text-shadow property?

I tried doing this on my own in a separate project but didn't work.

Eric E.
seal-mask
.a{fill-rule:evenodd;}techdegree
Eric E.
Full Stack JavaScript Techdegree Student 7,741 Points

Hey Patrick,

What do you mean with box-shadow lines? You can apply multiple shadows to a box-element by separating the different shadow sections with a comma if this is, what you meant.

2 Answers

Steven Parker
Steven Parker
229,744 Points

Yes indeed.

just separate the multiple box-shadow value sets with commas.

This generator tool might be useful for visually creating the effects you want and then providing ready-to-use code for your CSS file.

For more specific help with your issues, please share your code here.