The CSS positioned layout module defines the coordinate-based positioning and offsetting schemes available in CSS and the properties used to position and stack elements on a web page. The module is best known for defining the basic positioning methods, including relative positioning, sticky positioning, absolute positioning, and fixed positioning. It also defines how positioned elements are painted and layered, clarifying stacking behavior and visual order.
The positioned layout module defines the physical, logical, and shorthand inset properties. The logical properties enable developing with internationalization and responsiveness in mind.
Like all CSS modules, this module impacts and is impacted by other modules. This module describes how positioning interacts with other layout modules such as CSS flexible box layout and CSS Grid layout. Other modules, such as CSS anchor positioning, build upon this module to enable positioning elements relative to other elements and layers.
bottominsetinset-blockinset-block-endinset-block-startinset-inlineinset-inline-endinset-inline-startleftoverlaypositionrighttopPresents the notion of stacking context and explains how z-ordering works, with several examples.
z-index propertyThe stacking rules that apply when z-index is not used.
How floating elements are handled with stacking.
z-indexHow to use z-index to change default stacking.
CSS stacking context, the CSS features that create new stacking contexts, and nested stacking contexts.
The different position values and how to use them.
floatcleartransition-propertytransition-behavior<dialog> element
CSS anchor positioning module
CSS transforms module
*-position properties: