One of the most common CSS issues people run into

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI6 min

About this video

Explains why a percentage height works while a percentage min-height does not, because percentage heights depend on the parent element's height. Shows a possible workaround for when this layout is genuinely needed.

What you’ll learn

  • Explain why percentage heights depend on the parent element's height
  • Diagnose why a min-height percentage has no effect
  • Apply a workaround when a percentage height is required