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 trialMihai Childesco
9,326 Pointsmy 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
7,969 PointsWhen 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
9,326 Pointsand my image is upside-down
Josué Rodriguez
Front End Web Development Techdegree Graduate 24,118 PointsI 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?