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

HTML How to Make a Website Customizing Colors and Fonts Use Color in CSS

Rae de Leon
Rae de Leon
759 Points

Header background color would not change to green, and text remain white

here is the CSS code:

logo{

text-align: center;
margin: 0;

} a{

color: #6ab47b;

} header {

background:  #6ab47b;
border-color: #599a68;

}

Hi Rae de Leon, in order for us to have a better overview, could you please share with us a snapshot of the workspace? The snapshot button is the first icon from the left at the top right corner of the workspace.

2 Answers

Rae de Leon
Rae de Leon
759 Points

Hello! Thanks for your prompt replies, I finally figured out the problem, one of the closing bracket is missing.

Alejandro Narvaja
PLUS
Alejandro Narvaja
Courses Plus Student 7,340 Points

Is that nowhere indicate that change the background color. The border-color property is for edges simply.

Hi Alejandro, the "background: #6ab47b;" should change the header background color for green, that's why I asked the workspace snapshot, to see if the error was coming from another place. In the following link you can check the CSS "background" shorthand property: https://www.w3schools.com/css/css_background.asp