updated CSS3

added nth-of-type CSS replacing JavaScript