Re: pseudo-classes :odd and :even?

On Mon, 5 Mar 2001, Steve Tinney wrote:

> I went to the CSS 3 description of selectors expecting to find a simple way
> of specifying alternate gray and white backgrounds for table rows; I don't
> see
> one.
>
> Am I missing something?  I think something like nth-child() which applied
> to alternate rows would be useful.

:nth-child(odd) and :nth-child(even) are what you are looking for.

-- 
Ian Hickson                                     )\     _. - ._.)       fL
Netscape, Standards Compliance QA              /. `- '  (  `--'
+1 650 937 6593                                `- , ) -  > ) \
irc.mozilla.org:Hixie _________________________  (.' \) (.' -' __________

Received on Monday, 5 March 2001 02:26:12 UTC