Previous Message
Next Message

Re: [css-d] Back to Schneider Tree Care

Sent by Eric A. Meyer on 27 January 2002 14:02

At 13:57 -0500 1/27/02, Judy Benedict wrote:

>Okay,  Thanks Eric on the Validation.  When I validated it didn't have
>any message after the warning.  I was using .center {text-align:center}
>which I guess I cannot use center as a class name.

    Sure you can!  I think I was a little unclear in my explanation, 
so let me try again.  The warning was being thrown because at some 
point early in the stylesheet, you have a '.center' rule that 
contains (among other things) a declaration of 'text-align: center;'. 
Then, near the end, you have:

.center {
    text-align: center;

All the validator is saying is, "you're being redundant."  It's just 
a helpful hint, like someone observing that if you're watching a TV 
show, you might not also need to be taping it.  Maybe you want to 
that tape anyway, and maybe you want to have two declarations of the 
same property for a class of elements, but at least this way you get 
a reminder to double-check.
    (Odd that the validator output cut off before the actual warning 
text.  Which browser were you using to run the validation?)

Eric A. Meyer (, List Somethingorother
"CSS is much too interesting and elegant to be not taken seriously."
   -- Martina Kosloff
Previous Message
Next Message

Message thread:

Possibly related: