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 Customizing Colors and Fonts Pick Fonts and Set Relative Units

Jonatan Spahn
Jonatan Spahn
6,362 Points

Font still not changing

Still can't get my font to change.

indext.html doc

<html> <head> <meta charset="utf-8"> <title>Jonatan Spahn</title> <link rel="stylesheet" href="css/normalize.css"> <link href='https://fonts.googleapis.com/css?family=Ubuntu:400,500italic|Indie+Flower' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> </head>

main.css doc

logo {

text-align: center; margin: 0; }

h1 { font-family: 'Indie Flower', cursive; }

2 Answers

Simon Coates
Simon Coates
28,694 Points

there is no logo element, YOu probably want the selctor to be .logo on your css.

Simon Coates
Simon Coates
28,694 Points
<html>
 <head> 
<meta charset="utf-8">
 <title>Jonatan Spahn</title> <link rel="stylesheet" href="css/normalize.css">
 <link href='https://fonts.googleapis.com/css?family=Ubuntu:400,500italic|Indie+Flower' 
    rel='stylesheet' type='text/css'> 
<link rel="stylesheet" href="css/main.css">
<style>
.logo {

text-align: center; margin: 0; }

h1 { font-family: 'Indie Flower', cursive; }
</style>
 </head>
 <body>
 <h1>sssssss</h1>
  </body>
 </html>

Okay, so using the above, the font seems to apply. So the style is correct and the inclusion of the other font is solid. and given the right tagging, the style applies. You might want to verify the inclusion of main.css.