Jump to content

RTL and LTR


hostpolis

Recommended Posts

Dear All,

 

I'm willing to have my site in RTL and LTR languages. There seems to be a problem with that:

when having everything in English, the site is in english and text alignments are left to right.

I've added the following code to my header.tpl to make RTL languages Right to Left and it works fine:

{if $language eq "Arabic"}<html dir="rtl">{else}<html>{/if}

 

BUT! because the css text alignment is text-align=left, all div contents are again aligned in left instead of right.

 

Please advise what I should do to fix it!

 

Regards

Link to comment
Share on other sites

  • 5 months later...

Hello

 

You may also include a different css file for Arabic, in wich you align text to right:

 

You may try this:

{if $language eq "Arabic"}<html dir="rtl">

<link href=" ../templates/template_rtl.css" rel="stylesheet" type="text/css" />

{else}

<html>

<link href=" ../templates/template.css" rel="stylesheet" type="text/css" />

{/if}

 

Best Regards

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated