nth-child() just got an upgrade

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateWeb DesignUI3 min

About this video

A short CSS tutorial explaining how the upcoming "of S" syntax for :nth-child() works, and how it differs from :nth-of-type(). It also covers browser support.

What you’ll learn

  • Select elements with nth-child(an+b of S) in CSS
  • Compare nth-child with nth-of-type for element selection
  • Check browser support for the of S syntax before using it