Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Noob problem with changing colors in a div Re: [Solved] Noob problem with changing colors in a div

#81420
Bob
Member

Change your css code to:

Code:
p {
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;
}

css part :P

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.