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

"Apply font to CSS using the font-family attribute. Use a sans-serif fallback." <-- Did so, challenge tells me I'm wrong

In the second step of the CSS challenge where you're applying custom fonts, the challenge is asking me to apply my font to my CSS, while also using a sans-serif fallback. When I do this, however, the challenge tells me I'm wrong, even after checking it against my own (working) code in the workspace multiple times. HALP!

Kasey- Can you post your code?

1) Kathleen, that was literally the quickest forum response I have ever received anywhere, ever. You win! :D

2) Here's all my CSS from that challenge:

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; }

h1 { font-family: 'Open Sans Condensed' sans-serif; }

The last part is what matters; it connects to the font link in the HTML. The challenge is telling me I'm forgetting the sans-serif fallback, but you can clearly see it there.

I'd add a screenshot for you, but I'm new here, and I don't know how. My apologies.

You're missing a comma between the Open Sans and the fallback serif.

I totally missed the part where Nick even used a comma there in the video. Thank you so much, guys! :D

1 Answer

Try

h1 { font-family: 'Open Sans Condensed', sans-serif; }