html5 Icon Logo
me@grafxflow

Written by me@grafxflow

14 Sep, 2012

0

3,021

Making HTML text read from right to left

I recently had to create a multilingual website, which was fine apart form the Arabic language. The text had to read from right to left. The answer was to use the direction RTL. Here is it in use.

Code Output

He said "שלם" (shalom) to me.

He said "שלם" (shalom) to me.

Here is the usage in CSS.

p {
    direction:rtl;
}

Share this article

Add comment

Smart Search

me@grafxflow Author Profile picture

me@grafxflow

Founder, Grafxflow

I am a Full-stack Developer who also started delving into the world of UX/UI Design a few years back. I blog and tweet to hopefully share a little bit of knowledge that can help others around the web. I build lighting-fast dynamic content engines with Laravel, Winter CMS and Tailwind CSS. Thanks for stopping by!