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 CSS Basics (2014) Enhancing the Design With CSS Text Shadows and Box Shadows

Darren Franks
Darren Franks
1,006 Points

hi im trying to add new box value!

im trying to add a new box value and it says with multiple commas with a inset and i have written this every way i can and the page keeps refusing it! i added a new line with the word inset and the other values and changed the original to suit the question and i added commas to all and still no luck!

Matt Jones
Matt Jones
3,206 Points

Hi Darren,

I think the code you need is the following:

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

Hi thank you but no such luck, im sure its the way the qusestion is being asked if you dont see it too! i tried this too and still no luck! .main-header { box-shadow: 0 2px 15px #aaa; box-shadow: inset 0, 0 60px 5px firebrick; }

Matt Jones
Matt Jones
3,206 Points

Hi Darren,

The code you've posted isn't the same as I wrote in my first comment. You don't need to declare the 'box-shadow' a 2nd time. It looks like you have also added a comma after 'inset 0' which doesn't need to be there.

The steps to fix you're code are:

  • Replace the ';' after #aaa with a ',' (comma)
  • Remove the 2nd instance of 'box-shadow'
  • Remove the ',' (comma) you have after 'inset 0'
Darren Franks
Darren Franks
1,006 Points

Bless you Matt thank you it worked! it was throwing me off because it didnt have anything before the word inset! HAPPY CODING!

Matt Jones
Matt Jones
3,206 Points

Thanks Darre, I'm new to Treehouse and the way some of the questions are worded sometimes don't make it clear what to do!

Could you upvote my answer below?

1 Answer

Matt Jones
Matt Jones
3,206 Points

This should do it

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