Previous Message
Next Message

Re: [css-d] wierd

Sent by Lonnie Kraemer on 29 January 2003 23:11


> anyone ever seen this before? or this something wrong with my css?
>
> the css:
> table.body {
>     width:759px;
>     margin:auto;
>     padding:2px;
>     color:black;
>     text-align:left;
>     background-color:#f2f2f2;
> }
> tr.body td {
>     color:black;
>     text-align:left;
>     background-color:#f2f2f2;
> }

Nothing particularly odd with this... but

I'd avoid naming a class "body", for obvious same-as-element-name
reasons. You are specifying table.body and tr.body which is redundant
and a clash just waiting to happen!

margin:auto; isn't universally well rendered. In this case - skip it!

text-align:left; is a default. Unless you are overriding a previous
rule - skip it!

color:black; may or may not be troublesome, but I'd use #000 or #000000
just to be consistent with your other color value declarations.

background-color: can reliably be shortened to just background:
Previous Message
Next Message

Possibly related: