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

question: set the color of paragraph to black using hexadecimal numbers. Please explain what is wrong

please explain what is wrong with my coding below.

css/main.css

1 a { 2 text-decoration: none; 3 } 4 ​ 5

wrapper {

6 max-width: 940px; 7 margin: 0 auto; 8 } 9 ​ 10

logo {

11 text-align: center; 12 margin: 0; 13 } 14 h1, h2 { 15 color:#fff; 16 } 17 nav { 18 background: #599a68; 19 } 20 nav a, nav a: visited { 21 color:#fff; 22 } 23 nav a. selected, nav a:hover{ 24 color: #32673f; 25 } 26 body paragraph{ 27 paragraph-color: #000000; 28 color:#949 29 ​ 30 } 31 ​

2 Answers

The CSS to make your paragraph text black should look something like this:

p {
    color: #000000;
}

Try this:

a { text-decoration: none; }

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

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

h1, h2 { color:#fff; }

nav { background: #599a68; }

nav a, nav a: visited { color:#fff; }

nav a. selected, nav a:hover { color: #32673f; }

body p { color: #000; /I dont know where you want this color color:#949/ }