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 trialMUZ140570 Given Mabhena
3,326 Pointshow do l set the paragraphs color to black using hexadecimal
I am on html/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;
}
6 Answers
Mustafa Başaran
28,046 PointsHi 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!
MUZ140570 Given Mabhena
3,326 Pointstanx Basaram but l have inputed the code as u had said but it ddint work
MUZ140570 Given Mabhena
3,326 Pointstanx hey
Chyno Deluxe
16,936 PointsYou'll want to use the following code
p {color: #000;}
MUZ140570 Given Mabhena
3,326 Pointsanother question : how do change the navigation elements with hover to this color 32673f
MUZ140570 Given Mabhena
3,326 Pointsanother question;; how do l set the color of anchor elements inside the nav element to white using the hexadecimal
Mustafa Başaran
28,046 PointsIt 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.
Mustafa Başaran
28,046 Pointsa:hover { color: #32673f; }
MUZ140570 Given Mabhena
3,326 Pointsdankie lemme do it
Mustafa Başaran
28,046 PointsMustafa Başaran
28,046 PointsHi Muz,
You may want to type
p {
color: #000;
}
for setting the text color to black.