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

code challenge problem

how to make a website stage 5 customizing colors and fonts

Choose a font from Google Fonts and include it into the page. This should be suitable for a headline element

a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
  margin: 0;
}

h1, h2 {
font-family: 'chewy', cursive;
 color: #fff;
}

nav a {
  color: #fff;
}

nav a:hover {
  color: #32673f;
}

this is what i've done but it is not working

HELP!!!! imogenherbert

2 Answers

First you have to import the font from Google before you do anything else in the css file, then you can use it.

@import url(http://fonts.googleapis.com/css?family=Chewy);

a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
  margin: 0;
}

h1, h2 {
font-family: 'Chewy', cursive;
 color: #fff;
}

nav a {
  color: #fff;
}

nav a:hover {
  color: #32673f;
}

Also, I think the font name is case sensitive, so make sure you use 'Chewy' and not 'chewy.' It may or may not be case sensitive. I can't remember.

thanks

No problem. :D

comma after chewy?... maybe it's there and I cant see it. I also cant see the colons and semi colons.