CSS Portal

CSS padding-inline-start Property

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The padding-inline-start property defines the padding space on the “start” side of an element’s inline axis - that is, it increases the distance between the element’s content and its border on the inline-start edge. Because it is a logical property, the exact physical side it affects depends on the element’s writing direction and writing mode: in a left-to-right horizontal flow it corresponds to the left edge, while in a right-to-left flow it corresponds to the right edge, and in vertical writing modes it maps to the appropriate inline-start edge for that mode. The property itself does not inherit; it affects the element’s box and therefore influences layout, hit testing, and how background and border are drawn around content.

Logical properties like padding-inline-start are designed to work together: it is typically used as a pair with padding-inline-end to express inline-axis padding in a direction-agnostic way. When needed, you can relate them back to the traditional physical properties - for example, the logical start side corresponds to one of the physical paddings such as padding-left or padding-right, depending on the content flow. Choosing logical properties makes styles more robust across localizations because they automatically adapt when the document’s direction or writing mode changes.

In practice, padding-inline-start interacts with other CSS declarations in predictable ways: it can be overridden by later rules or by a shorthand such as padding, and changes to layout direction via properties like direction or writing-mode will alter which physical edge is affected without changing this logical declaration. Because of that, it is a recommended tool when you want spacing that remains correct across languages and scripts - for example, when aligning icons or leading content consistently at the start of lines regardless of whether text flows left-to-right or right-to-left.

Definition

Initial value
0
Applies to
all elements, except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column
Inherited
no
Computed value
as <length>
Animatable
a length
JavaScript syntax
object.style.paddingInlineStart

Interactive Demo

The rusty swing set creaked a lonely lullaby in the twilight, shadows lengthening like grasping fingers across the dew-kissed grass.

Syntax

padding-inline-start: <padding-top> 

Values

  • <padding-top> Specifies distance in px, pt, cm, etc. Negative values are not allowed.

Example

<div class="container">
<div class="box ltr">
Standard LTR: The padding is on the left.
</div>

<div class="box rtl">
RTL Direction: The padding flips to the right!
</div>
</div>
.box {
  background-color: #f0f4f8;
  border: 2px solid #2d3748;
  margin-bottom: 20px;
  width: 300px;
  
  /* The core property */
  padding-inline-start: 50px;
}

.ltr {
  direction: ltr;
}

.rtl {
  direction: rtl;
}

/* Extra styling for clarity */
.container {
  font-family: sans-serif;
  padding: 20px;
}

Browser Support

The following information will show you the current browser support for the CSS padding-inline-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
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 1st January 2026

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!