CSS - BAcground-color:transparent

Soldato
Joined
8 Oct 2005
Posts
4,184
Location
Midlands, UK
Hi People,

im trying to get my style sheet to valifate without anywarnings. I have the following for example:

Code:
.sbihead
{ background: #FFF url(blue_sbi.png);
  color: #484E56;
}

.sbihead h1
{ background-color: transparent;
  color: #484E56;
}

Now i get the error: "Line : 68 (Level : 1) You have no background-color with your color : .sbihead h1". How can i sort this as the image is a gif and setting the property to "transparent" throws out the same error too :(

Any ideas?
 
Over Here

You can set the background-color to inherit and it will make it transparent while getting rid of the warning. Just make sure that the text is readable on the containing elements background colour.
 
Back
Top Bottom