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
james freyre
526 PointsWhy isn't my entire header turning green? Only the bottom part of the header where "Portfolio, Contact, and About" is.
The background color in the top header "James Freyre | Designer" stayed white while the lower part "Portfolio, Contact, and About" turned green. I'll add the CSS and HTML code.
Steven Parker
243,656 PointsFor quoting code you need three accent symbols ("backticks") ```
(not apostrophes ''')
2 Answers
Steven Parker
243,656 PointsYou have some stray quote marks.
In front of two of your hex color codes (one for color, one for background) there is a stray quote mark (").
Remove those and "everything's green".
Andrew Shook
31,709 PointsSteven is right, in your styling of your a tags you have an opening quote between you colon after "color" and your hex color. Also, in your header styling you have opening quote between you colon after "background" and your hex color. I've marked the offending quotes with arrows (-> or <-) on either side.
a {
color: ->"<- #6ab47b;
}
header {
background: ->"<- #6ab47b;
border-color: #599a68;
}
you need to remove those quotes so that your css looks like this :
a {
color : #6ab47b;
}
header {
background : #6ab47b;
border-color: #599a68;
}
james freyre
526 PointsThank you so much Steven and Andrew. All is fixed now.
james freyre
526 Pointsjames freyre
526 PointsHere is my CSS code.
Here is the head and header section of the HTML code.