Created
December 2, 2021 02:56
-
-
Save HamidReazaNikoonia/504dc1090fefad5c4079131c1b151669 to your computer and use it in GitHub Desktop.
How Controll UI Layout for LTR & RTL direction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// left-to-right | |
<html lang="en" dir="ltr"> | |
// right-to-left | |
<html lang="ar" dir="rtl"> | |
// Customize with CSS | |
html:lang(ar) { | |
// your styles | |
} | |
html:lang(en) { | |
// your styles | |
} | |
// Helpfull styles | |
html:lang(en) .element { | |
writing-mode: vertical-rl; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment