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 Enhancing Design with CSS Styling Boxes Box Shadows

Fidelis Chime
Fidelis Chime
6,077 Points

box -shadow

Let's give .main-header an inner-shadow with a second set of box-shadow values. Set the new shadow's horizontal and vert

2 Answers

I believe you are asking for solution and here's how I would solve it!

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

Thank you Shem, but I have the same code like yours but the difference is that your text color firebrick is yellow while mine is blue, so I dont know where the problem is.

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Rohald van Merode
Treehouse Staff

Hey Fidelis Chime 👋

The code that Shem provided should be passing as expected. The syntax highlighting looks a little different on the forum compared to the challenges so that is why the color is yellow here and blue in the challenge editor.

If your code still isn't passing make sure that you have the comma placed inbetween the two value sets. If that doesn't work please share the snippet of code you're working with so we can have a look at what might be causing it not to pass 🙂

Hope this helps!

Fidelis Chime
Fidelis Chime
6,077 Points

Hello Rohald, Thanks for assistance , having tried it again , it worked