GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — Inset properties - Glossary | MDN

Inset properties

In CSS, inset properties control positioned elements' location by specifying offsets from the elements' default positions. There are physical, logical, and shorthand inset properties.

The inset properties include the top, left, bottom, and right physical properties, their inset-block-start, inset-block-end, inset-inline-start, and inset-inline-end flow-relative logical property equivalents, and the inset-block, inset-inline, and inset shorthands.

Physical properties reference specific physical sides of an element. Logical properties use directional keywords relative to the block and inline axes. Block axis refers to the axis that defines the stacking order of elements in a block layout. The inline axis is perpendicular to the block axis, representing the direction along which inline content like text flows within a block. The mapping depends on the element's writing-mode, direction, and text-orientation.

The interpretation of inset properties depends on the value of the position property. When position: absolute is set, they represent insets from the containing block or anchor element. With position: relative, they represent insets from the box's default margin edge position. With sticky, they represent insets from the scroll container edge. The fixed value is similar to absolute, except the element is positioned and sized relative to its fixed positioning containing block, which is often the viewport.

See also

  • Layout and the containing block
  • CSS positioned layout module
  • CSS logical properties and values module
  • CSS anchor positioning module

Help improve MDN

Learn how to contribute

This page was last modified on Nov 7, 2025 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.