Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

CSS validator warnings background-color
 

Ed Mullen




quote this post edit post

IP Loged report this post

Old Post  12-14-05 - 04:40 AM  
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


Post Follow-Up to this message ]
Re: CSS validator warnings background-color
 

Chris Beall




quote this post edit post

IP Loged report this post

Old Post  12-14-05 - 04:40 AM  
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



Post Follow-Up to this message ]
Re: CSS validator warnings background-color
 

Ed Mullen




quote this post edit post

IP Loged report this post

Old Post  12-14-05 - 04:40 AM  
Chris Beall wrote:
> Ed Mullen wrote:
> 
>
> 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


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 02:16 PM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top