OneTwo
margin-inline adds space along the inline axis.
If you searched for css logical properties or rtl layout, physical left/right breaks in multilingual sites. Logical properties use inline and block axes so one stylesheet works for LTR and RTL.
Spacing follows text direction automatically.
margin-inline adds space along the inline axis.
Same CSS flips spacing in RTL.
.chip { margin-inline-end: 0.5rem; padding-inline: 0.5rem 0.75rem; }
.card { padding-inline: 1.25rem; padding-block: 1rem; }Borders and radii can be logical too.
border-inline-start highlights the leading edge.
.quote {
border-inline-start: 4px solid #6366f1;
padding-inline-start: 1rem;
}Block and inline axes rotate for vertical layouts.
writing-mode: vertical-rl stacks characters top-to-bottom.
.label {
writing-mode: vertical-rl;
text-orientation: mixed;
}