Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Basics (2014) Basic Selectors Type Selectors

I am setting the font color to white but it's still saying wrong answer.where am I getting it wrong

Create a new type selector thats targets the header element .set the background colour to orange and the text color to white Header{ background-color:orange; Font:white;} What's wrong with this

2 Answers

Post your code with 3 backticks(`) to help others degub your issue

From what you have wrote, I am assuming it is because you have wrote "Font" when to change the font color it is actually "color:"

Solution

/* Complete the challenge by writing CSS below */

body {
  text-align: center;
}

p {
  color: lightslategrey;
}

header {
  background-color: orange;
  color: white;
}