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

Nate Drexler
Nate Drexler
1,883 Points

My top bar isn't showing up. I changed the pixel value and the color, and now it won't show up at all.

Here is the code:

html { background-color: gray; border-top: 20px solid #black;

}

2 Answers

Shaikat Haque
Shaikat Haque
3,187 Points

Before you add any properties to the bar, you have to make it visible by adding 'border-style: solid;' before the 'border-top' property.

Also if you're adding a bar to your web page, you should use a separate div for it.

Not sure what your trying to do but try this? { background-color: gray; border-top: 20px solid #000; } also I do agree with Shaikat separate div