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 Write Hexadecimal Colors

Nancy Melucci
PLUS
Nancy Melucci
Courses Plus Student 36,143 Points

Styling h1 with a hexadecimal value

The challenge is asking me to style the first two header levels with a hexadecimal value for white. I've tried #ffffff AND the shorthand #fff and it's giving me the Bummer message anyway....

h1, h2 {

color: #ffffff; }

isn't this the right hexadecimal code?

thanks....

4 Answers

That is the correct hex code and I tried using the same code in the quiz, both #fff and #ffffff and had it work for me. The only solution I can offer you is to refresh the page and try again.

Michal Orsag
Michal Orsag
13,242 Points

Hey! I think your problem is in h1 and h2 not in color. the right code is : h1, h2 { color:#fff; }

That code should work. I tried it and it accepted it too. Maybe you accidentally changed other selectors? Try refreshing?

Nancy Melucci
PLUS
Nancy Melucci
Courses Plus Student 36,143 Points

Thank you everyone....I removed the rest of code that was in the autograder and dropped the pound sign.

I wish you could all be checked off best.

NJM