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!
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

Douglas Watts
5,464 PointsBox Shadow Code Challenge
In the challenge it asks me to "Create a drop shadow for the .box div. Make it appear 10px to the right and 10px down, with a spread radius of 5px, a color of #222, and a blur radius of 15px." So i did that
.box {
box-shadow:10px 10px 5px #222 15px;
}
and it tells me that i am wrong and to write the
code just the way it is in the instructions. So can someone tell me what is wrong with my code?
2 Answers

Paul Johnson
18,924 PointsHi,
That's a bit misleading, the syntax for a box shadow is h-shadow v-shadow blur spread colour so your code should be
.box { box-shadow: 10px 10px 15px 5px #222; }

Douglas Watts
5,464 PointsThanks that worked just fine.
Do you know how to vote for best answer?