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 How to Make a Website Responsive Web Design and Testing Website Testing

Not Again... D:

Another W3C fail. This: font-weight 0.8em is not a font-weight value : 0.8em

1 Answer

rydavim
rydavim
18,814 Points

0.8 em is indeed not a font weight value. You'll want to use the values specified in the font you're using. Usually something like 300 for light, 400 for normal, 700 for bold, ect.

The em unit is used to specify font sizing, so you won't be able to use it for font weights.

So that's what those numbers mean! (Montserrat:700)

rydavim
rydavim
18,814 Points

Yup! You decide which fonts weights you want to load from google when you pick your fonts. Usually you don't want to add weights unless you're going to use them. I think it might default to normal only, and then you can add things like light, bold, or semi-bold if your font supports them.