POV-Ray : Newsgroups : povray.off-topic : Web page construction Server Time
4 Sep 2024 03:17:28 EDT (-0400)
  Web page construction (Message 31 to 35 of 35)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Invisible
Subject: Re: Web page construction
Date: 22 Sep 2010 06:02:21
Message: <4c99d42d$1@news.povray.org>
On 22/09/2010 10:52 AM, Invisible wrote:

> 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...

Only remaining problem is how to expand/collapse subtrees (now that a 
subtree isn't a single XML element any more). I'm sure it's solvable.


Post a reply to this message

From: Phil Cook v2
Subject: Re: Web page construction
Date: 22 Sep 2010 06:04:38
Message: <op.vjfh96rsmn4jds@phils>
And lo On Wed, 22 Sep 2010 10:52:30 +0100, Invisible <voi### [at] devnull> 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] devnull> 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

From: Invisible
Subject: Re: Web page construction
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

From: Phil Cook v2
Subject: Re: Web page construction
Date: 22 Sep 2010 09:05:28
Message: <op.vjfqnlq5mn4jds@phils>
And lo On Wed, 22 Sep 2010 11:34:03 +0100, Invisible <voi### [at] devnull> did  
spake thusly:

>> 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.

Well would you look at that. You learn something new every day.

-- 
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

From: Orchid XP v8
Subject: Re: Web page construction
Date: 22 Sep 2010 16:12:48
Message: <4c9a6340$1@news.povray.org>
On 22/09/2010 02:05 PM, Phil Cook v2 wrote:
> And lo On Wed, 22 Sep 2010 11:34:03 +0100, Invisible <voi### [at] devnull> did
> spake thusly:
>
>>> 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.
>
> Well would you look at that. You learn something new every day.

See, that's what's so awesome about this newsgroup. ;-)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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