Topic: Validation Warning (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10946" title="Pages that link to Topic: Validation Warning (Page 1 of 1)" rel="nofollow" >Topic: Validation Warning <span class="small">(Page 1 of 1)</span>\

 
MIDI
Paranoid (IV) Inmate

From: Georgia
Insane since: Dec 2002

posted posted 04-10-2003 18:54

Could anyone tell me why I keep getting this warning "Line : 34 Level : 1 You have no color with your background-color : div.center " when I validate my css?
The bg color is there.

url is in the sig.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-10-2003 19:20

It's not actually the background-color that's missing, it's a text color element. If you specify a background-color you need to specify a text color as well

color: red;

whatever.




.:[ Never resist a perfect moment ]:.

MIDI
Paranoid (IV) Inmate

From: Georgia
Insane since: Dec 2002

posted posted 04-10-2003 19:36

Thanks bitdamaged....
That took care of the it...


DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 04-10-2003 20:35

Yep, just a matter of "good practice" to include both a color and a background color.

At this point it's not *needed* but it's more "proper". =)

Easy way to satisfy this and not worry about changing colors later is to specify the background-color as 'transparent' or the color as 'inherit' - depending on which is "missing".

that way when you change colors elsewhere in your style sheet, you don't have to update them to match.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu