:nth-child(-n+4)

Learn all about the :nth-child pseudo class https://speakerdeck.com/mkivikoski/css-pseudo?slide=102

More by Mike Kivikoski

View profile