Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Enhancing Design with CSS Styling Boxes Box Shadows

Fidelis Chime
Fidelis Chime
3,925 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
3,925 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
3,925 Points

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