Introduction
Good RTL website design makes an Arabic page feel as if it was built for Arabic from the start, not flipped at the last minute. Some sites add an Arabic version late, and it shows: arrows point the wrong way, numbers jump around and phone fields look broken.
This checklist is for owners and developers. If you are still deciding whether you need two languages at all, start with our guide to bilingual website design, which covers strategy, translation and URLs.
RTL Website Design Starts in the HTML
Start with two small attributes on the html element: lang="ar" and dir="rtl". The lang attribute tells browsers, screen readers and search engines that the page is in Arabic. The dir attribute sets the base direction, so text, tables and form fields start from the right.
Put the direction in the HTML, not in CSS. The W3C explains why in its article on structural markup and right-to-left text in HTML: direction is part of the meaning of the content, so it should stay with the content even when styles fail to load. In addition, each Arabic page should have its own URL, so search engines can index it, as our Arabic SEO guide explains.
Use CSS Logical Properties
Old stylesheets are full of fixed sides: margin-left, padding-right, text-align: left. As a result, Arabic needs a second stylesheet, and the two drift apart over time.
CSS logical properties solve this. Instead of left and right, they use start and end, which follow the text direction. For example:
- margin-inline-start replaces margin-left in English and margin-right in Arabic.
- padding-inline-end adds space on the side where a line ends.
- text-align: start aligns text left in English and right in Arabic.
- inset-inline-start places a badge or close button on the starting side.
Modern browsers support them, and flexbox and grid already follow the page direction. So one stylesheet can serve both languages, and a fix in one version reaches the other.
What to Mirror in RTL Website Design
Mirroring means the layout reads from right to left. The logo and menu move to the right, the sidebar swaps sides, and breadcrumbs run from right to left. In addition, any icon that shows direction must flip, such as back and forward arrows, chevrons in menus and "next" buttons.
However, some things must not flip. Keep these as they are:
- Logos and brand marks, because they are part of your identity.
- Media controls such as play, pause and fast forward, because they follow the tape direction, not the reading direction.
- Numbers, phone numbers and prices, which always read left to right.
- Icons of real objects, such as a phone, a cart or a check mark.
Photos need a human eye too. A person who looks toward the text in English may look away from it in Arabic, so choose a different photo instead of flipping it.
For the bigger picture of a two-language site, read this next.
Read moreBilingual Website Design: Getting Arabic and English RightArabic Fonts and Line Height
Many popular Latin fonts have no Arabic letters. The browser then falls back to a system font that differs on every phone. Instead, choose a font family designed for Arabic, such as Noto Sans Arabic, Cairo or IBM Plex Sans Arabic, and pair it with a Latin font of a similar weight.
Arabic letters also have tall shapes and dots above and below the line. So give body text a slightly larger size and more line height than English. Also, never add letter spacing to Arabic, because it breaks the joins between letters, and avoid fake italics. Finally, load only the font weights you use, since Arabic font files are heavy. Our guide to website speed optimization shows how to keep fonts light.
Arabic or Western Digits?
Arabic text can use Western digits (0123) or Arabic-Indic digits (٠١٢٣). Both are correct, and you will see both on Egyptian sites. What matters is that you pick one style and use it everywhere: prices, dates, phone numbers and order numbers.
Western digits are often the safer choice for business sites, because customers copy phone numbers and order codes into WhatsApp or a search box.
Mixed Arabic and English Text
An Arabic sentence often contains an English brand name, a model number or a web address. Browsers usually order plain words correctly, but punctuation, numbers and user content cause trouble. For example, a product name that ends with a bracket may show the bracket on the wrong side.
The fix is to isolate text whose direction you do not know. Wrap user names, product titles and search terms in a bdi element, or add dir="auto", so the browser judges each run on its own. Also, keep URLs and email addresses inside their own element with dir="ltr".
Forms, Phone and Email Fields
Forms are where RTL website design breaks most often. Labels, hints and error messages should sit on the right and appear in Arabic. However, some fields hold left-to-right data even on an Arabic page.
- Use type="tel" for phone numbers and type="email" for email, with dir="ltr", so +20 and 01 numbers display correctly.
- Keep passwords, card numbers and codes left to right as well.
- Add dir="auto" to free text boxes, so a message in English or Arabic reads naturally.
- Check that icons inside fields, such as a search glass or a clear button, move to the correct side.
Sliders, Carousels and Swipe Gestures
Sliders are easy to forget. In Arabic, the first slide sits on the right, and "next" moves the content toward the left. So the arrows, the dots and the swipe direction must all agree. Most slider libraries offer an RTL setting, but it must be switched on and tested.
Testing RTL Website Design on Real Phones
A desktop browser preview is not enough, because many of your visitors will arrive on a phone. Therefore, test the Arabic pages on at least one Android phone and one iPhone, in Arabic system settings as well as English. Then work through this list:
- Open the menu, search and language switcher, and check that each one opens from the expected side.
- Fill in every form with an Arabic name, an Egyptian mobile number and an email address.
- Swipe every slider and gallery in both directions.
- Read long headings and buttons to make sure Arabic text never gets cut off.
- Share a page on WhatsApp and check that the preview title appears in Arabic.
Finally, ask a native Arabic reader who did not build the site to use it for ten minutes. Fresh eyes catch the reversed arrow that the team no longer sees.
These checks belong to the wider design process. Read this next.
Read moreUI/UX Design Guide: From Research to Developer HandoffFrequently Asked Questions
What is RTL website design?
RTL website design is the work of building pages for right-to-left languages such as Arabic. It covers the page direction, mirrored layout and icons, Arabic fonts, numbers, forms and testing. The aim is a site that feels native to Arabic readers, not a flipped copy of the English one.
Is dir="rtl" enough to make a website Arabic-ready?
No. The attribute flips the text and the base layout, which is a good start. However, fixed left and right values in the CSS, directional icons, sliders, fonts and form fields still need work. So treat dir="rtl" as step one, then check every part of the page.
Should an Arabic website in Egypt use Arabic or Western digits?
Both are correct, and both appear on Egyptian sites. Many businesses choose Western digits because customers copy phone numbers and order codes into other apps. The key is to choose one style and use it consistently across prices, dates and phone numbers.
How do I test RTL website design before launch?
Test on real phones, at least one Android device and one iPhone, with Arabic and English system settings. Fill in every form, swipe every slider and share pages on WhatsApp. Then ask a native Arabic reader outside your team to use the site and report anything that feels reversed.
Conclusion: RTL Website Design That Feels Native
RTL website design is a set of small, careful choices: dir and lang in the HTML, logical properties in the CSS, smart mirroring, good Arabic fonts, one digit style, isolated mixed text, correct form fields and sliders that move the right way. Get them right, and Arabic visitors trust your site from the first screen.
At LinkMasr, our work includes bilingual sites such as Kreston Egypt and LexPro Software, and PostAraby, an Arabic-first social post scheduler. If you want an Arabic site that works properly on every phone, explore our web development services and tell us about your project. We will send you a clear quote.
Need an Arabic Website That Works Right?
We design and build Arabic and English websites with proper right-to-left layouts, fonts and forms.
Explore Web Development