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

Design Web Typography Final Project: Create a Typographic Site Header and Summary

Bobby Tagget
Bobby Tagget
16,564 Points

Using @import not applying font styling

I have already found a work around to this by reverting back to using the <link> tag in the html file, but Matt does not recommend this as we are not editing the html file. Is anyone else having this issue? The browser I am using is Chrome

1 Answer

Make sure you copy just the @import url('https://fonts.googleapis.com/css?family=Alegreya+SC:400,400i|Alegreya+Sans+SC:400,400i|Alegreya+Sans:400,400i|Alegreya:400,400i,900i'); without any aditionals, maybe in the google fonts website you'll see the link inside <style> </style>, DO NOT COPY THAT. I couldn't get the fonts to work until I realized of this mistake.