Write layout-direction-agnostic CSS with logical properties π
Use margin-inline, padding-block, and border-inline instead of top/right/bottom/left β your layout works in any writing direction.
β
RTL support for free
β
Cleaner vertical layout code
β
Baseline 2023 β
Learn more π
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values
MDN Web Docs
@mdn@mastodon.social
The official MDN Web Docs account. We deliver the best web docs around. Visit β https://mdn.dev Contribute β https://mdn.dev/community
mastodon.social
MDN Web Docs
@mdn@mastodon.social
The official MDN Web Docs account. We deliver the best web docs around. Visit β https://mdn.dev Contribute β https://mdn.dev/community
mastodon.social
@mdn@mastodon.social
Β·
Mar 30, 2026
11
0
13
Loading comments...