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
Michael Hess
24,512 PointsCSS: Challenge 4 of 4
Let's give .main-header an inner-shadow with a second set of box-shadow values. Set the new shadow's horizontal and vertical offsets to 0, the blur radius to 60px, the spread radius to 5px, and the color to firebrick. Don't forget to include the keyword value that creates an inner box shadow.
This is my code:
box-shadow: inset 0 0 60px 5px rgb(178,34,34);
This is the message after checking work: Bummer! Make sure you're defining a second box shadow value. Did you include a comma between both values?
Why isn't this passing?
I have also tried using firebrick, instead of the rgb value, and I have tried using a rgba, too.
2 Answers
Colin Bell
29,679 PointsYou deleted the first box-shadow. Step 4 is asking that you create a second box shadow on .main-header. When creating multiple box-shadow, you separate each one with a comma.
.main-header {
box-shadow: 0 2px 15px #aaa, inset 0 0 60px 5px firebrick;
}
Michael Hess
24,512 PointsThanks Colin!
Christian Hingle
15,495 PointsBeat me to it Colin :)
Michael Hess
24,512 PointsMichael Hess
24,512 PointsThis is the full code for the challenge:
/* Complete the challenge by writing CSS below */ .main-heading{ text-shadow:0 0 5px #be7b31; } .title{ text-shadow: 1px 3px 0 #e59740; } .main-header{ box-shadow: 0 2px 15px #aaa; box-shadow: inset 0 0 60px 5px rgb(178,34,34); }