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

web design

Bummer! It does not look like you have given a font-family to the level one heading

h1, h2 {
  color: #fff;
  font-family:Megrim sans-serif;
}

1 Answer

Not sure what the question is asking but try this.

h1, h2 {
  color: #fff;
  font-family: 'Megrim', sans-serif;
}

I am assuming Megrim is an external font therefore it should be added with quotes, then for the fallback font you need to add a comma before it.

Let me know if this works :)

James Barnett
James Barnett
39,199 Points

Adam Sackfield -

> I am assuming Megrim is an external font therefore it should be added with quotes

That's not usually necessary, according to the CSS3 spec quoting is recommend only in certain cases:

> To avoid mistakes in escaping, it is recommended to quote font family names that contain white space, digits, or punctuation characters other than hyphens

source: http://www.w3.org/TR/css-fonts-3/#propdef-font-family