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 Use Color in CSS

Won't change the h1 color to white! :(

I created in the html the "h1" and instead of creating an "h2" I used a "h3", so at the time I was changing the color to white in the css sheet it won't change the color, i don't know if it's because I used the h3! please help!

html header code:

<header> <a href="index.html" id="logo"> <h1>Andres Leal</h1> <h3>iOS Developer</h3> </a> <nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header>

CSS code:

h1, h3 { color: #fff; }

Hey Andres,

The Challenge or Objective works fine, I think it wasnt working due to the h2 & h3 mix-up. When doing the challenges our biggest mistakes are not reading carefully (questions) not proofchecking (answers). It should always be easy to follow along, if we don't understand the challenge it is usually because we "overthought the answer" or "jumped ahead".

1 Answer

Hello Andres!

If it is a challenge that you are trying to complete then try using the elements that it is asking you to use in your CSS selector and everything should then work perfectly!

-Luke

Sorry, but can you give me an example how?

Are you being asked to complete a code task? If so, could you please paste the question into this thread?

Okay I understand now!

The code you will need to turn the h1 text into white is as shown below.

h1 {
  color: #fff;
}

Well it doesn't work but I used it into the html <style> element and that way it works, thanks! :D

No problem I am glad you managed to resolve this issue, good job!