We can use different positioning strategies in CSS. It is important you know them all well.

Positioning is what makes us determine where elements appear on the screen, and how they appear.

We have the property position which can have one of those 5 values:

  • static
  • relative
  • absolute
  • fixed
  • sticky

Let’s see how they work.

Static positioning

This is the default value for an element. Static positioned elements are displayed in the normal page flow.

Lessons this unit:

0: ▶︎ Introduction
1: Relative positioning
2: Absolute positioning
3: Fixed positioning
4: Sticky positioning