Previous Message
Next Message

Re: [css-d] Everysecond row in a table?...

Sent by Austin Govella on 30 January 2002 11:11


> For a 6 row table you match the "odd" rows and "even" rows as follows. It
> obviously would get a bit unwieldy with tables with many (or a dynamic #) of
> rows.
> 
> tr,tr+tr+tr,tr+tr+tr+tr+tr { background-color:#FFCCCC; }
> tr+tr,tr+tr+tr+tr,tr+tr+tr+tr+tr+tr { background-color:#CCCCFF; }
> 
> Like this:
> http://placenamehere.com/css-discuss/alternatingrowcolor.html


selector-wise... how does this work?



--
Austin
Previous Message
Next Message

Message thread:

Possibly related: