Power-up position absolute with this simple technique

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI6 min

About this video

A short CSS tutorial on using position absolute with CSS Grid so that elements can be placed on grid rows and columns instead of relying on magic-number offsets. It is aimed at front-end developers and designers who already write CSS layouts.

What you’ll learn

  • Turn on a CSS grid and make its container the containing block
  • Place absolutely positioned elements on grid rows and columns
  • Replace magic-number offsets with grid-based positioning