CSS inset-block-end Property
Description
The inset-block-end property controls the offset of an element’s logical end edge along the block axis. In writing modes where the block axis runs top-to-bottom (the common horizontal writing mode), this maps to the physical bottom edge; in vertical writing modes it maps to a left or right edge depending on the direction of the block flow. Because it targets the logical “end” side of the block axis, it lets authors position elements in a writing-mode–agnostic way so the same style will behave correctly across rotated or vertical text layouts.
When used on a positioned element, inset-block-end participates in the same positioning model as other inset properties and can interact with counterparts and shorthands; for example, it works together with inset-block-start to determine an element’s block-axis placement and can be overridden by or combined into shorthands such as inset-block and the overall inset shorthand. The property is meaningful only when the element is in a positioning context that considers offsets (for instance, not on static-flow elements), so you’ll commonly use it alongside the position property to establish that context.
Beyond simple offsetting, inset-block-end affects layout decisions when both block-start and block-end offsets are specified: user agents resolve those constraints to determine position and, where applicable, size adjustments for absolutely positioned boxes. Because the mapping of “end” depends on the page’s text orientation, authors should consider the current writing-mode (and related directionality settings) when reasoning about its effect; conceptually, it serves the same role as the physical bottom (or top/right/left in other modes) but in a logical, transformable way that keeps styles robust across international and vertical layouts.
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.insetBlockEnd
Interactive Demo
Syntax
inset-block-end: 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-end 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
