CSS Positioning: Position absolute and relative explained

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerUI9 min

About this video

A short CSS tutorial explaining the basics of position absolute and how it behaves when position relative is applied to a sibling or parent element. It is aimed at people building layouts for the web who find CSS positioning confusing.

What you’ll learn

  • Explain how position absolute positions an element relative to its nearest positioned ancestor
  • Predict how adding position relative to a parent changes an absolutely positioned child
  • Apply position relative and absolute together to place elements in a layout