Latest from O’Reilly

Insights, practical guidance, and announcements from O'Reilly

Introducing the nth-child pseudoclass

Part of the new CSS3 standard, the nth-child and nth-last-child pseudoclasses are a useful way to select elements on a website, such as odd or even elements, or every 3rd or 4th element. Learn how this simple selector can impact your next project.