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

HTML How to Make a Website Styling Web Pages and Navigation Polish the Navigation and Footer

Font weight does not change to 800px

As Nick does, I want to change the weight of my nav items to 800px. My HTML and CSS seem to be correct but the change does not reflect when refreshing. When inspected in Chrome, it appears to warn that '800px' is an invalid property value.

HTML code:

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Crina Burroughs | Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link href="https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400i,700,800" rel="stylesheet"> <link rel="stylesheet" href="css/main.css"> </head>

CSS code:

nav a { font-weight: 800px; padding: 15px 10px; }

Thank you in advance

5 Answers

I believe font-weight does not use px values. If you want a font-weight of 800, you just use font-weight: 800;

Hope this helps

Thank you for your answer! Why does Nick write '800px' then...? Hmmm...

Have you watched the entire video? Sometimes after teacher compiles, he realizes and error and fixes it. I know it happens a lot in the C# track :P I don't know for your specific video. Has font-weight: 800 worked?

Yes, it worked! And he doesn't correct it. Anyway, good for other people to know this. Thanks for your help!

Oh I don't know then. Glad I was helpful for my first comment in the community tab :) You're welcome