Loading...
.card {
margin-left: 16px;
text-align: left;
}.card {
margin-inline-start: 16px;
text-align: start;
}Logical properties follow the text direction, so the margin moves to the right side when dir is 'rtl'.
transform instead of using dir.<html> element has dir="rtl" for RTL locales.left and right.dir="auto" or <bdi>.Partly. Text, flexbox and grid order follow it, but physical properties like left and margin-right stay where they are.
Directional icons like back arrows should be mirrored. Icons without direction, such as search or a check mark, should stay as they are.
Use the :dir(rtl) pseudo-class or an [dir='rtl'] attribute selector on the element or its ancestor.