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

Code Challenge: Box Shadows

Hi there, I'm doing the Code Challenge in the 'Background & Borders' section from the CSS Foundations.

I wrote this:

.box { box-shadow: 10px 10px 5px 15px #222; }

But it throws me en error that says me, 'Make sure your box-shadow values exactly match the instructions'.

This is what I have to do: Create a drop shadow for the '.box' div. Make it appear 10px to the right, 10px down, have spread radius of 5px, a color of #222 and blur radius of 15px.

Please any help would be really nice, Thank you very much in advance!

Paul

7 Answers

.box { box-shadow: 10px 10px 15px 5px #222; }

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Pablo Grippo,

You're very close. Just swap the order of the spread radius and blur radius values and you're good-to-go.

Thanks Guil Hernandez its worked for me too.

IT'S SOLVED!

Thank you very much for your response Guil Hernandez.

By the way, The CSS Foundations is great! I'm learning a lot! :)

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Nice work, Pablo Grippo!

I'm really glad to hear that you're learning a lot. Thanks for being a Treehouse member!

please paste code here

Hi , Guil Hernandez , i have a question on how can i learn effectlively ? I mean , buy just going throw your videos and making challenges and quizes , will i learn enought ? i mean should i make something extra or on other courses like CSS layout i will get everything bits by bits slowely ? Its just that i dont want to waste time by wathcing videos and not learn anything if i will forget it the next day or know a little about it .

Another question is , should i learn JS first or PHP ? or Ruby on Rails to get on the internet fast ? In the way that i could make accounts for users etc.. like fb or in teamtreehouse with points to students and then while learning js i could just update my website ?