Forum Moderators: not2easy
<html><head><style>
#myid p {color: orange;}
.myclass p {color:red;}
</style></head><body>
<div id="myid">
<div class="myclass"><p>Why is this orange and not red?</p></div>
</div>
</body></html>
[edited by: swa66 at 10:26 pm (utc) on Dec. 11, 2008]
[edit reason] unintended smiley removal [/edit]
See what happens if you try
<html><head><style type="text/css">
#myid p {color: orange;}
.myclass p {color:red ! important;}
</style></head><body>
OR
<html><head><style type="text/css">
#myid p {color: orange;}
#myid.myclass p {color:red;}
</style></head><body>
ETA: Welcome to the forum!
[edited by: swa66 at 10:25 pm (utc) on Dec. 11, 2008]
[edit reason] unintended smiley removal [/edit]