[wp-hackers] best practices for plugin styles
Otto
otto at ottodestruct.com
Tue Feb 15 21:19:49 UTC 2011
On Tue, Feb 15, 2011 at 2:42 PM, Jeremy Clarke <jer at simianuprising.com> wrote:
> One other thing that is often useful when styling tables is a .alt class on
> every second row (preferably also with .odd and .even on rows for people who
> prefer that semantic construction).
Not disagreeing, but CSS3 has nth-child built in. Works in all modern
browsers except IE (and possibly Opera).
http://www.quirksmode.org/css/nthchild.html
Example: tr:nth-child(odd) {style:here;}
-Otto
More information about the wp-hackers
mailing list