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 trialQuintin Riley
12,136 PointsBox shadow
How do I set the color #222?
3 Answers
Jacob Miller
12,466 PointsBox shadows are coded like this: box-shadow: x-offset y-offset blur-radius color ;
So an example might be: box-shadow: 0px 2px 2px #222;
Bradan Jackson
20,558 PointsThe part that you have in here is correct, but you're forgetting the spread.
.box { box-shadow: x-offset y-offset blur spread color; }
Hope this helps!
Jacob Miller
12,466 PointsYeah, forgot about that. Thanks for the correction.
Carsten Pleiser
8,386 PointsCarsten Pleiser
8,386 PointsCould you please add your current code?