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

Sanjay Goswami
Sanjay Goswami
397 Points

Whats wrong with my h1?

a { text-decoration: none; }

wrapper {

max-width: 940px; margin: 0 auto; }

/*********** HEADING ***********/

logo {

text-align: center; margin: 0; }

h1 { font-family: 'Open Sans', Sans-Serif; color: #fff; }

h2 { color: #fff; }

/*********** NAVIGATION ***********/

nav a { color: #fff; }

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

/*********** FOOTER ***********/

4 Answers

Devin Cooper
Devin Cooper
8,352 Points

Sanjay,

I copied and pasted your code into my text editor. I see no issues with your h1 selector. What is the selector not doing for you?

I believe the problem is that you didn't prefix your selectors with . or # (depending whether they are classes or ids)

Sanjay Goswami
Sanjay Goswami
397 Points

I have not had a problem with that up to this point but I tried adding anyway and its still not working.

Sanjay Goswami
Sanjay Goswami
397 Points

It was giving me an error in regards to not creating an h1 sub header which I clearly have. I tried it again keeping the sub header as h1, h2 { font-family: 'Open Sans', Sans-Serif; color: #fff; } and now it appears to be acceptable. I am guessing this was an error with the editor. Anyway, thanks for your help.