How do i select the 1st and then every 4th row in a html-table with nth-child()-selector?

Posted by Nils on Stack Overflow See other posts from Stack Overflow or by Nils
Published on 2010-06-18T09:29:04Z Indexed on 2010/06/18 9:33 UTC
Read the original article Hit count: 238

Filed under:
|
|
|

Ok, math isn't my strong side, I admit it.

All I want to do is to select the first, 5th, 9th, 13th, 17th etc row in a html-table. Can anybody with better math-skills point me in the right directionor perhaps supply a "nth-child-for-dummies" guide?

I tried nth-child(1n+4) (which selects the 4th row and everyone after), and i also tried nth-child(0n+4) which selects the fourth row and nothing after that.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about math

Related posts about css3