Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3675406
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:58:20+00:00 2026-05-19T02:58:20+00:00

How can i regularise my right to left language where it is Arabic language.

  • 0

How can i regularise my right to left language where it is Arabic language. So it must start from right to left including all scroll bar, input box, upload whole layout is actually required to be shown as right to left.

This is my layout:

<?= $this->doctype();// xhtml = strict ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <?php echo $this->headTitle(); ?>
    <?php echo $this->headMeta(); ?>
    <?php echo $this->headScript(); ?>
    <?php echo $this->headLink()->prependStylesheet('/css/production.css'); ?>
    <link rel="shortcut icon" href="/img/pageicon.png" type="image/x-icon" />
    <link rel="alternate" type="application/rss+xml" title="We care Arab Page"      href="/rss.xml" />
</head>
<body>
!!!!!! everything need right to left, where default page is english (left to right).!!!!!
</body>
</html>

Please advise ? 🙂

Thanks & Regards

Follow up:

  • $this->view->headMeta()->appendName(‘Language’,’en’);
    This is not related to DIR

  • http://www.w3.org/TR/REC-html40/struct/dirlang.html
    This is a solution actually

  • It works

    < html xmlns=”http://www.w3.org/1999/xhtml&#8221; lang=”ar” dir=”RTL” >

  • ZF-> How do you assign it from MVC controller ?

    < html xmlns=”http://www.w3.org/1999/xhtml&#8221; lang=”ar” dir=< ?= $this->rtl; ? > > ???

  • tried 2 suggestion

    < body style=”direction:rtl;” >
    OR
    < html xmlns=”http://www.w3.org/1999/xhtml&#8221; lang=”ar” dir=”RTL” >

Dont see any differences for direction changing. Image does not flip, all the rest flip exactly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:58:21+00:00Added an answer on May 19, 2026 at 2:58 am

    I do most of my web sites in arabic language and i don’t have to depend in dir="RTL" all the time
    for example :
    on every project i work with ,

    1. i use 960 grid + jQuery + ZF
    2. I used to float most of my element
      to the right for div , p , table
      , em , h1 ... h6 , form input

      and some times i add style for p tag
      like this : directtion:RTL to make
      thing align correctly
    3. I am used to set chartset for any
      part of the application to UTF8 form the view to the database … etc

    hopefully i didn’t miss any thing
    and Good luck

    update

    let’s take the facebook.com arabic page as an example , it doesn’t have code like yours

    < html xmlns="http://www.w3.org/1999/xhtml" lang="ar" dir="RTL" > ,

    the body tage has style for direction:RTL you would see some of the form elements flipped

    but notice the world image , it didn’t flip to the left but in your case all the element would flip if you removed this dir='rtl' attribute

    what i meant to say : control your element on the page

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can any one help me in sorting this out in sed/awk/perl Input file Start
Can you point me in the right direction? I'm trying to get a loop
Can I prevent an .apk from being installed if unknown sources is checked?
Can we close all known/unknown connections to database with the code? I'm using Access
Can someone please explain to me why the output from the following code is
Can anyone let me know how can we change the value of kendo combobox
Can I order my users in the database, so I don't have to say
Can I change the field public virtual ClassOne ClassOne { get; set; } to
Can I authenticate with just Google account username and password instead of using OAuth?
Can any one tell, how to get the result of LINQ query contains group

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.