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 Customizing Colors and Fonts Add Fonts

Tommy Gebru
Tommy Gebru
30,164 Points

task 2

<code>In your CSS, apply your font to the first level headline using font-family. Include a sans-serif fallback. </code>

This is absolutely ridiculous I have been really patient either there is a bug or I have the wrong answers.

Jacob Miller
Jacob Miller
12,466 Points

Can you post your code? Check out the "Tips for asking questions" video on the right if you don't know how.

Tommy Gebru
Tommy Gebru
30,164 Points

In your CSS, apply your font to the first level headline using font-family. Include a sans-serif fallback.

a {
  text-decoration: none;
}

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

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

h1, h2 {
  color: #fff;
}

nav a {
  color: #fff;
}

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

This is my code untouched posed as the question.

2 Answers

Jacob Miller
Jacob Miller
12,466 Points

Ok. So for example, if I chose the font "Quicksand" from Google Fonts in the first step of the code challenge, I would need to create a new rule in the CSS file targeting h1 and setting the font-family to Quicksand, sans-serif, because they want you to include a sans-serif backup. So your code should look like this:

h1 {
    font-family: Quicksand, sans-serif;
}
Tommy Gebru
Tommy Gebru
30,164 Points

ok so target h1 separately in addition to the previous code and place a comma between the prime and backup fonts, Surely i have already traveled this route but i will try again.