[Solved] Right justification in html


How do I justify Arabic to the right in html within a custom script (which has no html editor)?

Nathan - Survey Astronaut selected answer

    Best answer


    Hi Kris!

    If I understand your question correctly, you are looking to have your Arabic text flow from right to left. On an HTML page, this is most easily controlled using the `dir` attribute:


    This attribute would be applied to an element wrapped around your Arabic text.

    If it’s actually alignment you’re looking to modify, and not direction, the CSS `text-align` property is what you’ll want:


    I hope this helps!

    Nathan - Survey Astronaut selected as best answer


      Question stats

      • Active
      • Views2388 times
      • Answers1 answer
      • Followers0 followers