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

Raul Perez
Raul Perez
289 Points

How do I change the color of paragraphs in CSS using hexadecimal colors?

I've reviewed the 2 previous videos a few times and they do not show or explain how to do this.

css/main.css
a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
  margin: 0;
}

h1, h2 {
  color: #fff;
}

2 Answers

Ronald Pedagat
Ronald Pedagat
10,110 Points

The paragraph selector is p

so it would be:

p { color: [insert hexadecimal]; }

Curtis Murley
Curtis Murley
2,766 Points

You will find moving forward on Treehouse that not all questions and code challenges are a direct copy of the previous video lesson. This is where inquiry learning has to come in

You demonstrated how to change the color of the headlines. Paragraphs are the exact same but you switch which selector you are selecting

p {
  color: #000;
}