Email or username:

Password:

Forgot your password?
Top-level
iliazeus

@kytta inputs and labels are both inline elements, so a browser already has rules for choosing between RTL and LTR. You can just use dir="auto" in HTML, and let the browser figure it out. Or set it explicitly with dir="ltr" and dir="rtl".

jsfiddle.net/04hn1cjw/7/

1 comment
Nikita

@iliazeus you’re right! I’ve somehow never realized this and have never considered just using the elements without any CSS. Thanks a lot!

Go Up