A powerful CSS display property that no one talks about

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI12 min

About this video

Kevin Powell explains the CSS display: contents property, which makes an element's children behave as siblings in layout. The video covers how it works, its limitations, a flexbox navigation example, nth-of-type selection and accessibility concerns.

What you’ll learn

  • Use display: contents to make an element's children act as siblings
  • Build a flexbox navigation using display: contents
  • Weigh the accessibility risks of removing an element's box