beginnertermCSSCSS / Layout / Position
BeginnerNot yet reviewed

Position

The position property controls how an element is placed: static, relative, absolute, fixed or sticky.

Definition

The position property controls how an element is placed: static, relative, absolute, fixed or sticky.

Use case

A sticky header stays at the top while scrolling, and a badge on the corner of a card uses absolute positioning.

In Figma

Absolute position inside an auto layout frame

Related terms

Documentation

position

MDN · Docs

Explains each value with live examples.

Suggest a change