I use the * selector to indicate that unless I specify otherwise, the font color on the website should be set to a specific value.
*{ font-family:"Verdana"; color: #04468e; }
So far so good. The problem is that this is the most general rule, and it should be easily redefined, for example,
#profileMessageBoxHeader { background:url('images/profileMessageHeaderGradient.png') repeat-x #208ff6; height:178px; border-radius:10px 10px 0px 0px; color:#fff; }
So the following code ...
<div id="profileMessageBox"> <div id="profileMessageBoxHeader"> < <p>Please fill out the form and click submit. Your entered profile data will be provided to the tutor, to allow them to contact you.</p> </div> </div>
Should produce white text. For some reason, however, the extremely general * rule overrides the more specific ID rule. Why?
Ronlugge
source share