Previous Message
Next Message

Re: [css-d] background-color a css requirement?

Sent by Arlen P Walker on 17 July 2002 10:10


>but it comes up with "warnings" about having no background-color on quite 
a
>few of my Classes and ID's... is this a requirement?!???  i didnt realize
>that it was...

Not a requirement; that's why it was a "warning" not an "error." What it's 
doing is reminding you that you haven't set a background color for a class 
or ID that you set a color on, so you need to check and make sure that the 
color is not the same as the background color for that item. It simply 
checks for syntax; it doesn't do enough analysis to know what the 
background color for a particular ID will be if not specified because it 
doesn't know the context in which you'll be using the ID.

IOW, it's telling you whether the syntax is valid, and then giving you a 
"heads-up" on some other things that you might want to check. If you're 
anal about such things, you can go back through your CSS and specify 
background colors for everything. Otherwise, you can just accept the 
warnings and go on. Warnings do not prevent a sheet from being valid.

Have fun,
Arlen
Chief Managing Director In Charge, Department of Redundancy Department
DNRC 224

[EMAIL-REMOVED]
----------------------------------------------
In God we trust; all others must provide data.
----------------------------------------------
Opinions expressed are mine and mine alone.
If JCI had an opinion on this, they'd hire someone else to deliver it.
Previous Message
Next Message

Possibly related: