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
Albin Martinsson
2,554 PointsTrouble linking CSS to HTML (Google web fonts)
I'm trying to construct a website but the CSS changes won't show up in the browser. I've tried checking the link a bunch of times but I'm just staring myself blind here. Help would be much appreciated! My Css-file i located in the same folder as my .html file on the desktop <!DOCTYPE html> <html> <head> <title>Min hemsida</title> <link rel="stylesheet" type="text/css" href="WS1.css"> </head>
<body> <div class="header"> <h1 class="logo">BLAIDD DRWG,INC.</h1> <div class="navbar"> <ul> <li>Home</li> <li>Values</li> <li>Contact</li> </ul> </div> THE CSS-FILE @font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; src: local('Oswald Bold'), local('Oswald-Bold'), url(http://themes.googleusercontent.com/static/fonts/oswald/v7/bH7276GfdCjMjApa_dkG6bO3LdcAZYWl9Si6vvxL-qU.woff) format('woff'); }
.logo { font-family:"Oswald-Bold"; }
2 Answers
Adam Sackfield
Courses Plus Student 19,663 Pointscreate a Jsfiddle please
Marie Mosley
14,248 PointsIn the .logo rule, use the correct font name in the font-family declaration ( it's Oswald, not Oswald Bold). You can set the font-weight to 700 to use the bold variation of the Oswald font.