A Simple Fix for Your CSS Overflow Problems

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateWeb DesignUI4 min

About this video

A short CSS tutorial explaining why overflow: hidden can create unexpected scrollbars when a menu needs to overflow its parent in one direction, and how overflow: clip and clip-margin offer an alternative. It is aimed at people who already build interfaces with CSS.

What you’ll learn

  • Explain why overflow: hidden can create unwanted scrollbars
  • Use overflow: clip to let an element extend in one direction
  • Apply clip-margin to control how far content can overflow