[Web4lib] CSS3 selector question - nth-child(even)
Thomas Dowling
tdowling at ohiolink.edu
Wed Dec 1 14:31:18 EST 2010
On 12/01/2010 12:41 PM, Bob Duncan wrote:
>
> The condition of odd/even-ness is determined at the sibling level, and a
> sibling is a sibling regardless of HTML element and/or class attribute
> value (just as human children from the same two parents are siblings
> regardless of gender or hair color?). In your list of tasty things, the
> first two animals are odd-numbered siblings, hence the style is not
> applied. (See <http://libcat.lafayette.edu/screens/nthchild.html> for an
> example without classes involved.)
>
Thanks, Bob, that clears things up for me. John Hubbard suggested to
offlist, tongue in cheek, that I could pump 80k-worth of JQuery libraries
down the pipe to accomplish what I wanted. Little did he know that I'm
already doing just that, so I may tackle it from that end.
Thomas
More information about the Web4lib
mailing list