Layout

position

Learn how to use the CSS position property.

CSS position

The position property sets the position for an HTML element.

Syntax

.element {
  position: absolute;
}

HTML Context Example

<div class="card">
  This is a styled element.
</div>

<style>
.card {
  position: absolute;
}
</style>

Notes

Experiment in the CSS playground to see how this affects layout and styling.