Jump to content

transparent background with links


Recommended Posts

im making the background on my links transparent but the css validator gives me the following warnings:

Line : 3 (Level : 1) You have no background-color with your color : a:link Line : 9 (Level : 1) You have no background-color with your color : a:visited Line : 15 (Level : 1) You have no background-color with your color : a:active Line : 21 (Level : 1) You have no background-color with your color : a:hover

i know the page is valid but i dont want the warnings their!(viewers say it looks better without them) am i doing something wrong? also i really dont want to set a color because i have an image for the background.here is my stylesheet:

a:link{background-color: transparent;color: #323232;font-family: verdana,monospace,arial;font-size: 10px;}a:visited{background-color: transparent;color: #323232;font-family: verdana,monospace,arial;font-size: 10px;}a:active{background-color: transparent;color: #323232;font-family: verdana,monospace,arial;font-size: 10px;}a:hover{background-color: transparent;color:#7FB900;font-family: verdana,monospace,arial;font-size: 10px;text-decoration: underline overline;}
Thanks!
Link to post
Share on other sites

Sorry, I don't think there is anyway to drop these errors except by supplying a background colour to the element.These are "warnings" only, so the page is still considered validated. Clearly; the spec allows background color=transparent, but the validator still issues this warning.Not much you can do with it.

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...