Friday, December 9, 2011

CSS 3 equivalent to jQuery eq()

In jQuery, using eq:

In CSS 3, using nth:

Note that jQuery way is zero-based when CSS begins counting at 1.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.