POV-Ray : Newsgroups : povray.off-topic : Web page construction : Re: Web page construction Server Time
4 Sep 2024 01:16:58 EDT (-0400)
  Re: Web page construction  
From: Invisible
Date: 22 Sep 2010 06:34:05
Message: <4c99db9d@news.povray.org>
>> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.