CSS inset-inline-start Property


The inset-inline-start CSS property is used to specify the distance between the inline (horizontal) edge of an element and the corresponding edge of its containing block. This property is particularly useful in modern CSS for creating flexible and responsive layouts. It allows developers to control the positioning of elements relative to their containing blocks along the inline axis, which is typically horizontal. By setting values for inset-inline-start, designers can precisely position elements, such as text or images, and adjust their placement based on the available space and layout requirements, making it a valuable tool for creating visually appealing and adaptive web designs.

Initial value
Applies to
positioned elements
Computed value
same as box offsets: top, right, bottom, left properties except that directions are logical
a length, percentage or calc();
JavaScript syntax

Interactive Demo

I am absolutely positioned.
The rusty swing set creaked a lonely lullaby in the twilight, shadows lengthening like grasping fingers across the dew-kissed grass. A lone dandelion seed, adrift on the breeze, whispered secrets of faraway fields, of dandelion suns and galaxies spun from fluff. Somewhere, beyond the veil of dusk, a coyote laughed, echoing through the stillness like a forgotten memory.


inset-inline-start: auto | <length-percentage> 


  • <length-percentage>Specifies distance in px, pt, cm, etc. Negative values are allowed.


<p class="exampleText">Example text</p>
div {
  background-color: yellow;
  width: 120px;
  height: 120px;

.exampleText {
  writing-mode: vertical-lr;
  position: relative;
  inset-inline-start: 20px;
  background-color: #c8c800;

Browser Support

The following table will show you the current browser support for the CSS inset-inline-start property.

Edge Chrome Firefox Opera Safari
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview

Last updated by CSSPortal on: 2nd January 2024