CSS position deep dive

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI28 min

About this video

A deep dive into the CSS position values static, relative, absolute, fixed and sticky, covering how containing blocks work and the gotchas that break positioning. It uses a realistic layout rather than floating demo boxes, and suits developers who already know basic CSS.

What you’ll learn

  • Explain how position static, relative, absolute, fixed and sticky place elements
  • Work out which containing block an absolutely positioned element uses
  • Troubleshoot unexpected behaviour that breaks CSS positioning