Search code examples
csstranslationstylesheetright-to-left

Website in right-to-left languages (Arabic, Hebrew)


I currently developing a multi-language interface for a Django project. But when I started to work on Arabic and Hebrew languages, I noticed all pages messed up after dir="rtl" to html tag (according to instructions on http://www.w3.org/International/tutorials/bidi-xhtml/)

Does that mean I need separate stylesheets for right-to-left languages?


Solution

  • Do not put the style attribute to the html tag.

    Use the dir='rtl' attribute only inside the div's where you actually use Arabic and Hebrew. Not for the entire page.