CSS padding-inline property
Browser support · legacy reference
ChromeNot supported
SafariNot supported
FirefoxFully supports
Internet ExplorerNot supported
EdgeNot supported
OperaFully supports
Description
It is a logical property that defines space at the start and end sides of the content in the boundaries of a box. The selection of start side depends on the writing-mode.
It behaves like padding-top and padding-top for the horizontal-tb writing mode.
-
It behaves like padding-right and padding-left for the vertical-* writing-mode respectively.
Change the direction of flow of text.
horizontal-tb vertical-lr vertical-rl
Syntax
padding-inline : padding-inline-start padding-inline-end
Property values
20px 40px
-
The padding-inline-start and padding-inline-end values are 20px and 40px respectively.
- Try it
padding-inline: 20px 40px;
Applicable to
It applies to all elements