Monday, August 28, 2006

 

Confusing CSS Validator Report

I was running Transact SQL videos through the CSS Validator this morning and got a very confusing warning.

Here's my original .headerAdText:
.headerAdText
{
background-color: #B6D2CD;
border-bottom: thin solid #586872;
padding-left: 10px;
padding-right: 10px;
height: 47px;
}
I ran it through the W3C's CSS Validator and it reports
(Level : 1) You have no color with your background-color : .headerAdText"
Okay, so I tried this instead:
.headerAdText
{
background: #B6D2CD;
border-bottom: thin solid #586872;
padding-left: 10px;
padding-right: 10px;
height: 47px;
}
But I get the same warning... How about this hack?
.headerAdText
{
background: #B6D2CD;
background-color: #B6D2CD;

border-bottom: thin solid #586872;
padding-left: 10px;
padding-right: 10px;
height: 47px;
}
This is where it gets strange...
# Line : 22 (Level : 1) You have no color with your background-color : .headerAdText
# Line : 22 (Level : 2) Redefinition of background-color : .headerAdText
lol

Anyone have any clues on the logic behind this?



Technorati Tags: , , ,



Comments: Post a Comment

Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?