Home › Forums › CSS › [Solved] Noob problem with changing colors in a div › Re: [Solved] Noob problem with changing colors in a div
August 12, 2010 at 6:50 am
#81420
Bob
Member
Change your css code to:
Code:
p {
color: green;
}
.para p {
color: blue;
font-weight: bold;
}
color: green;
}
.para p {
color: blue;
font-weight: bold;
}
That will get you <p> text in the .para div blue, but all other <p> text on your page will remain green. Or you could just delete that whole
Code:
p {
color: green;
}
color: green;
}
css part
Also, you missed a forward slash ( / ) in your html code, in your closing <p> tag, but that has nothing to do with the color being green or blue.