CSS inset-block-start Property
Description
The inset-block-start property is a logical offset that positions an element relative to the start edge of the block axis of its containing block. In practical terms, it moves the element away from the block-start side (which corresponds to the top in typical horizontal-tb layouts) without referring to physical directions; the mapping of “block start” depends on the document’s writing mode. Because it’s a logical property, it makes responsive and internationalized layouts simpler: the same declaration adapts automatically when text direction or writing mode changes.
This property only affects elements that are positioned (i.e., those with a non-static position value). For an element with position: relative, changing inset-block-start offsets the element visually while leaving its original space in the flow; for absolutely positioned elements, it establishes the offset from the containing block’s block-start edge and removes the element from normal flow. It is therefore frequently used together with positioning strategies to place UI elements precisely—such as tooltips, overlays, or anchored controls—without changing surrounding layout structure.
Conceptually, inset-block-start complements other logical and shorthand properties. It can be considered the block-axis counterpart to inline-start offsets and is related to the single-value shorthand inset that can set multiple logical offsets at once. When choosing between displacement in flow versus offsetting a positioned box, authors sometimes use the logical margin counterpart (for spacing in normal flow) instead; that relationship highlights how logical properties let you express intent (start/end along block/inline axes) rather than physical directions, which is especially useful when the writing-mode changes the layout orientation.
Definition
- Initial value
- auto
- Applies to
- positioned elements
- Inherited
- no
- Computed value
- same as box offsets: top, right, bottom, left properties except that directions are logical
- Animatable
- a length, percentage or calc();
- JavaScript syntax
- object.style.insetBlockStart
Interactive Demo
Syntax
inset-block-start: auto | <length-percentage>
Values
- <length-percentage>Specifies distance in px, pt, cm, etc. Negative values are allowed.
Example
Browser Support
The following information will show you the current browser support for the CSS inset-block-start property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
