Jump to content

Annoying CSS Validate Warnings


Recommended Posts

Well when I validate my css for my website, "www.djdtm.com"It validates sure, but it gives me these wierd warnings, that are annoying, and I can't seem to get rid of.http://jigsaw.w3.org/css-validator/validat...&usermedium=all^validate link^Warnings:URI : http://djdtm.com/style.css * Line : 20 (Level : 1) You have no background-color with your color : .style1 * Line : 27 (Level : 1) You have no background-color with your color : .style2 * Line : 33 (Level : 1) You have no background-color with your color : .style3 * Line : 39 (Level : 1) You have no background-color with your color : .style4 * Line : 45 (Level : 1) You have no background-color with your color : .style5 * Line : 52 (Level : 1) You have no background-color with your color : a:link * Line : 59 (Level : 1) You have no background-color with your color : a:visited * Line : 66 (Level : 1) You have no background-color with your color : a:hover * Line : 73 (Level : 1) You have no background-color with your color : a:activeNow what do I have to do to not get these warnings.I'm a perfectionist. :\

Link to post
Share on other sites

Specify a background-color, of course. Though I personnally think it's useless...background-color: transparent should be good enough, but since that validator sucks it'll give you the warning anyway I think. So you're left with background-color: inherit, which takes the same bg color as the parent element.

Link to post
Share on other sites

There have been many complaints for months on the mail list pages of w3.org from various people eversince this change.Bascally, it was said by a few people that 'warnings' aren't bad :)They said as long as you don't get any 'errors' then your CSS is valid :(if you have a transparent background, they issue a warning saying you have no background color (but transparent backgrounds register as valid).Also, they said at w3.org that if you don't like seeing 'warnings' then you can switch them off when validating. So you only see errors (if any) on the validating page.A few months ago, I was annoyed too. But now I accept it :)Some things you HAVE to use transparent backgrounds, in which case you get 'warnings', but oh well.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...