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 trialSanjay Goswami
397 PointsWhats 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
8,352 PointsSanjay,
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?
Pedro Cabral
Full Stack JavaScript Techdegree Student 23,916 PointsI believe the problem is that you didn't prefix your selectors with . or # (depending whether they are classes or ids)
Sanjay Goswami
397 PointsI have not had a problem with that up to this point but I tried adding anyway and its still not working.
Sanjay Goswami
397 PointsIt 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.