f.khantsis
f.khantsis

Reputation: 3560

BIDI equivalent of left and right CSS properties

I want to place an element in bottom left corner of another, element. I give position:relative to the parent, and position: absolute; bottom: 0; left: 0 to the child.

The problem is that the page can be loaded in ltr or rtl. In case of RTL, the child element has to be in the bottom right corner of the parent.

Many CSS properties have bidi equivalents, such as margin-left goes to margin-inline-end. Is there a bidi equivalent of left CSS property

Upvotes: 0

Views: 198

Answers (1)

f.khantsis
f.khantsis

Reputation: 3560

MDN points to inset-inline-start as logical equivalent of left

Upvotes: 1

Related Questions