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

how do l set the paragraphs color to black using hexadecimal

I am on html/css

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

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

#logo {
  text-align: center;
  margin: 0;
}
h1, h2 {
  color: #fff;
}
body {
  background-color: #fff;
  color: #999;
}
Mustafa Başaran
Mustafa Başaran
28,046 Points

Hi Muz,

You may want to type

p {

color: #000;  

}

for setting the text color to black.

6 Answers

Mustafa Başaran
Mustafa Başaran
28,046 Points

Hi Muz,

.nav a { color: #fff; }

By the way, you may want to take CSS Basics course by G. Hernandez. It is a great way to get familiarized with css properties and selectors. Another useful course would be CSS Foundations also by G. Hernandez

Have a nice day!

tanx Basaram but l have inputed the code as u had said but it ddint work

tanx hey

You'll want to use the following code

p {color: #000;}

another question : how do change the navigation elements with hover to this color 32673f

another question;; how do l set the color of anchor elements inside the nav element to white using the hexadecimal

Mustafa Başaran
Mustafa Başaran
28,046 Points

It depends on how the navigation div is represented in the index.html If there is a class, you should put a . in front of the class name:

.nav { }

if there is an id, then you should put # symbol instead of .

while selecting.

I hope that this helps.

dankie lemme do it