HighDots Forums  

CSS validator warnings background-color

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss CSS validator warnings background-color in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ed Mullen
 
Posts: n/a

Default CSS validator warnings background-color - 12-13-2005 , 07:04 PM






Ok, I get the thing about specifying color and background-color
together. So I specify:

background-color: transparent;

in my CSS file. And I still get the warning.

The CSS file is: http://ed.mullen.home.comcast.net/styles/ahs.css

The warning is:

Line : 41 (Level : 1) You have no background-color with your color : #logo_1

If I specify a color (e.g. #fff the warning goes away. So, is
transparent an illegal value? Doesn't seem to be according to:

http://www.w3.org/TR/REC-CSS2/colors.html
http://www.w3schools.com/css/pr_background-color.asp

Color me confused.

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
I was simply furnishing a home. I love music ... and I don't think a
$130,000 indoor-outdoor stereo system is extravagant. - Leona Helmsley

Reply With Quote
  #2  
Old   
Chris Beall
 
Posts: n/a

Default Re: CSS validator warnings background-color - 12-13-2005 , 07:16 PM






Ed Mullen wrote:

Quote:
Ok, I get the thing about specifying color and background-color
together. So I specify:

background-color: transparent;

in my CSS file. And I still get the warning.

The CSS file is: http://ed.mullen.home.comcast.net/styles/ahs.css

The warning is:

Line : 41 (Level : 1) You have no background-color with your color :
#logo_1

If I specify a color (e.g. #fff the warning goes away. So, is
transparent an illegal value? Doesn't seem to be according to:

http://www.w3.org/TR/REC-CSS2/colors.html
http://www.w3schools.com/css/pr_background-color.asp

Color me confused.

Ed,

Transparent is valid, but does not resolve the validator's concern that
the user may have assigned a background color which is incompatible with
your new foreground color.

It's a warning, not an error. If transparent is appropriate to your
situation, leave it.

Chris Beall



Reply With Quote
  #3  
Old   
Ed Mullen
 
Posts: n/a

Default Re: CSS validator warnings background-color - 12-13-2005 , 07:35 PM



Chris Beall wrote:
Quote:
Ed Mullen wrote:

Ok, I get the thing about specifying color and background-color
together. So I specify:

background-color: transparent;

in my CSS file. And I still get the warning.

The CSS file is: http://ed.mullen.home.comcast.net/styles/ahs.css

The warning is:

Line : 41 (Level : 1) You have no background-color with your color :
#logo_1

If I specify a color (e.g. #fff the warning goes away. So, is
transparent an illegal value? Doesn't seem to be according to:

http://www.w3.org/TR/REC-CSS2/colors.html
http://www.w3schools.com/css/pr_background-color.asp

Color me confused.


Ed,

Transparent is valid, but does not resolve the validator's concern that
the user may have assigned a background color which is incompatible with
your new foreground color.

It's a warning, not an error. If transparent is appropriate to your
situation, leave it.

Chris Beall

Thanks, Chris, for the explanation.

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.