Stop using width 100vw for no good reason

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

This CSS Short explains why setting width to 100vw on a block-level element is usually unnecessary, since block elements already fill the available horizontal space and the declaration can cause layout issues.

What you’ll learn

  • Avoid setting width 100vw on block elements that already fill their container