|
 |
And lo On Wed, 22 Sep 2010 10:52:30 +0100, Invisible <voi### [at] dev null> did
spake thusly:
> On 22/09/2010 10:50 AM, Phil Cook v2 wrote:
>> And lo On Wed, 22 Sep 2010 10:35:08 +0100, Invisible <voi### [at] dev null> did
>> spake thusly:
>>
>>> I think I'm going to go with <table>, simply because it lets me
>>> actually achieve the rendering result I want. Sure, tables are evil.
>>> OTOH, my data actually *is* a table! So putting it in <table> isn't
>>> that much of a hack.
>>
>> Well yeah if it's tabular data present it in a table nothing evil about
>> that well unless you're going to use nested tables just for display
>> purposes that's frowned upon; and if you're not then you're going to
>> have to style every single cell and that's just messy.
>
> 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 :-)
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.
--
Phil Cook
--
I once tried to be apathetic, but I just couldn't be bothered
http://flipc.blogspot.com
Post a reply to this message
|
 |