CSS Treehouse Club: CSS My First Web Page Comments, Selectors, and Syntax

blerton islamaj
PRO
blerton islamaj
Pro Student 819 Points

The top bar won't show up after changing the value of pixels!!!

I already changed the value of pixels related to top bar but after refreshing the page , the top bar disappeared!

Billy Bellchambers
Billy Bellchambers
21,689 Points

Blerton it would be helpful if you can include some code for us to review.

Either share a snapshot if working on workspace (icon in top right and share link).

Or post code on here using the Markdown sheet instructions at bottom of this page like so.

          ```html
          <p>This is code!</p>
          ```

3 Answers

Billy Bellchambers
Billy Bellchambers
21,689 Points

Only issue I can see with the code you have provided there is the units on the border width.

To my knowledge 100spx doesn't mean much in css. Please make sure this is correct and either pixels (px) or or appropriate unit such a em or rem.

Hope that helps

html {
    border-top: 100px solid #8a85a5;
}

Should do the trick

Maybe the hexadecimal color doesn´t exist.

Nate Drexler
Nate Drexler
1,883 Points

Hi there. I changed the top bar pixels and color and now my top bar has disappeared.

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

}