1 reply [Last post]
kufarooq
kufarooq's picture
Offline
newbie
Pakistan
Last seen: 3 years 19 weeks ago
Pakistan
Timezone: GMT+3
Joined: 2017-01-18
Posts: 2
Points: 4

Most of my blog post are in Urdu, but text alignment is coming form left to right which is affecting look of my blog posts. How can i change text alignment from right to left for my blog page?

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 3 hours 6 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9761
Points: 3843

direction

You may use the html attribute, dir, or the css property, direction. Plus there are other methods that I leave as an exercise for the class.

<body dir="rtl">...</body> <!-- right to left -->
or, the css
body {
    direction: rtl;} /*right to left*/

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.