POV-Ray : Newsgroups : povray.off-topic : CSS can be fun : Re: CSS can be fun Server Time
4 Sep 2024 01:13:52 EDT (-0400)
  Re: CSS can be fun  
From: nemesis
Date: 22 Sep 2010 14:07:58
Message: <4c9a45fe$1@news.povray.org>
Invisible escreveu:
>>> I hadn't even heard about :nth-child. (What, still no :last-child
>>> yet?) That still doesn't help me style a table with some arbitrary
>>> number of rows, where I want the odd rows blue and the even rows yellow.
>>
>> We're cross-threading here so I'll just repeat tr:nth-child(odd){} Oh
>> and nth-last-child() will select elements backwards, but besides there
>> is a :last-child. All hail CSS3.
> 
> And, uh, how many years will it be before any browser anywhere starts to 
> implement CSS3?

meanwhile, I'd output <tr class="odd"> and style that with ".odd {}"

-- 
a game sig: http://tinyurl.com/d3rxz9


Post a reply to this message

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