CSS inset-inline-end Property
Description
The inset-inline-end property defines the offset of an element’s inline end edge relative to the corresponding edge of its containing block. It is one of the logical “inset” properties that let you describe offsets in terms of the flow-relative inline axis rather than fixed physical directions; this makes layouts that adapt to different writing modes and text directions much simpler because you express placement in semantic terms (inline start / inline end) rather than left / right.
Because it is a logical property, the result of inset-inline-end depends on the writing mode and direction of the element’s containing context. The property’s effect is governed by properties such as writing-mode and direction, and in simple horizontal LTR flows it corresponds to the physical right edge while in RTL flows it corresponds to the physical left edge. It also has a natural counterpart in the inline dimension: inset-inline-start, which together describe offsets on both inline faces of a box.
In practical layout scenarios inset-inline-end is most relevant when an element participates in positioned layout (for example when it has a non-static position), or when used with the logical shorthand inset. If both inline-start and inline-end offsets are specified, they interact to determine the element’s inline position and, depending on the other constraints, may cause the element to be sized or stretched between those two edges rather than remaining a fixed width. Because it’s a box offset property it participates in the cascade and the normal layout resolution rules, and it will resolve percentage offsets against the inline-size of the containing block.
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.insetInlineEnd
Interactive Demo
Syntax
inset-inline-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-inline-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
