1
HTML/CSSIntermediate#css#functions
Logical properties (margin-inline-start, padding-block, inset-inline) adapt automatically to the writing mode and text direction (LTR/RTL), whereas physical properties (margin-left, top) always refer to fixed screen directions, which breaks in RTL languages without overrides.
.card {
margin-inline: auto; /* replaces margin-left/right in LTR */
padding-block: 1rem; /* replaces padding-top/bottom */
}
[dir="rtl"] .card { /* logical properties auto-flip, no override needed */ }