[Solved] Right justification in html

0

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

    0

    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:

    http://www.w3.org/International/articles/inline-bidi-markup/

    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:

    https://developer.mozilla.org/en-US/docs/Web/CSS/text-align

    I hope this helps!

    Nathan - Survey Astronaut selected as best answer
      ×

      Login

      Question stats

      • Active
      • Views395 times
      • Answers1 answer
      • Followers0 followers