Sent by Christian Heilmann on 13 February 2005 23:11
[EMAIL-REMOVED] wrote:
>Hi all,
>
>If I have a table and i wanted to to rotate the colouring of each table row
>
>is the correct way to css this way
>
>TR style=etc
>
>or do i have do do it for each TD
>
>tr
> td style
>
>?
>
>
>
You should not use inline styles unless totally necessary, in any case.
As for row or cell, row is easier to maintain, cell is safer. However,
you can do both in css when applying a class to the row:
tr.odd, tr.odd td {background:#ccc;}
as an example. If you want alternate rows, and you don't want to add all
classes by hand, there are script to do the job for you:
http://www.onlinetools.org/tools/domtableenhance.php
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/