css nth-of-type select all code example Example 1: css child multiple of 3 :nth-child(3n) {} Example 2: nth of type for every 4th after the 1st :nth-of-type(4n+1)