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

Challenge will not accept my answer, adding multiple box shadows to one element.

Just like the text-shadow property the box-shadow can take multiple comma-seperated values to add additional shadows to the same element. 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.

3 of the challenge answer is correct as:

.main-header { box-shadow: 0 0 60px 5px #aaa; }

but when I add the inner-shadow element to #3 and check my work it says Oops! It looks like Task 3 is no longer passing.

.main-header { box-shadow: 0 0 60px 5px #aaa, inset 0 0 60px 5 px firebrick; }

What am I doing wrong?

if this is exactly what you're writing, then there is a space between the '5' and 'px.' this would definitely cause and error.

4 Answers

Looks like you changed the box-shadow that you added in challenge 3 instead of just adding a second inset box-shadow separated by a comma:

.main-header {
  box-shadow: 0 2px 15px #aaa, inset 0 0 60px 5px firebrick;
}

Also, make sure there isn't a space between the number and the px.

I noticed that and updated it, however, I still get the message (OOPS! it looks like Task 3 is no longer working), this is how the code looks now for the 4th part of the challenge:

.main-header { box-shadow: 0 0 60px 5px #aaa, inset 0 0 60px 5px firebrick; }

i found your problem, somewhere along the way you changed the first box shadow from the settings they asked for. try:

.main-header{
  box-shadow: 0 2px 15px #aaa, inset 0 0 60px 5px firebrick;
}

also, this is the answer Matthew gave.

thanks guys, I think its time to take a break!