Loading...
.icon {
margin-right: 8px;
padding-left: 1rem;
}.icon {
margin-inline-end: 8px;
padding-inline-start: 1rem;
}Logical sides follow the text direction, so the spacing flips correctly in right-to-left pages.
margin-inline-start, not margin-left.Inline is the direction text runs in a line; block is the direction lines stack. In English, inline is horizontal and block is vertical.
inset-inline the logical version of left and right?Yes, inset-inline-start and inset-inline-end replace left and right and follow the writing direction.