|
 |
>> Nested tables won't even help me here. And no, I don't need to style
>> every single cell. I just style each row (so I can get alternating
>> colours) and each cell in column 1 (so I can set the indent). And
>> since the whole table will be machine-generated anyway...
>
> tr:nth-child(odd){background-color:red;}
> tr:nth-child(even){background-color:blue;}
>
> Seeing as you don't care about IE :-)
That works? Impressive... (As you say, it's only taken 10 years!)
> As for column 1 styling how will that line up the dates? You'll need to
> line up column 1 of rows 2 and 5, and then column 1 of rows 3, 4, and 6
> and then do the same for column 2.
Just adjust the padding property for column one. The other columns
automatically line up, the way they always do in a table.
Post a reply to this message
|
 |