pseudo-classes can do more than you might think

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

ShortIntermediateUIWeb Design1 min

About this video

A short showing how CSS pseudo-classes such as :only-child and :first-of-type can style elements in place of modifier classes, beyond the commonly used :hover and :focus.

What you’ll learn

  • Style elements with :only-child and :first-of-type instead of modifier classes