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

Mihai Childesco
Mihai Childesco
9,326 Points

my css nav a {font-weight: 800;} doesn't work. Where is the problem, please?

I want to bold the font like in the video course, but my code doesn't work. What i am doing wrong?

2 Answers

Hadi Khalili
Hadi Khalili
7,969 Points

When you get font from google fonts, click on customize and select those fonts properties that you want.

Here is what you have included in the html:

<link href="https://fonts.googleapis.com/css?family=PT+Sans|Sansita" rel="stylesheet">

Here is how the customized one looks like:

<link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700|Sansita:400,700,800" rel="stylesheet"> 

The PT Sans max font weight is 700.

Hope that helps

Mihai Childesco
Mihai Childesco
9,326 Points

and my image is upside-down

Josué Rodriguez
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Josué Rodriguez
Front End Web Development Techdegree Graduate 24,118 Points

I forked your workspace snapshot and changed the

nav a {font-weight: 800;}

to

nav a {font-weight: 400;}

And it works for me. Are you saving and refreshing the page after?