Most Arabic websites I'm asked to fix have the same fault: the English site was built first, then someone translated the text and set it to align right. The result looks nearly right and feels wrong. Menus run the wrong way, bullet points sit on the wrong side, a back arrow points forward, and a phone number appears backwards inside a sentence. Arabic readers notice immediately.
This guide covers the technical and design choices that make an Arabic page work properly. It deals with the build. For what people actually search, read Arabic keyword research for Kuwait.
Start with the markup: lang and dir
Set the language and the base direction on the page itself. For an Arabic page, that means lang="ar" and dir="rtl" on the html element. The W3C's guidance says to use the dir attribute in HTML, not CSS, to set base direction, because "the directional information" needs to remain available even when the CSS isn't, and because direction can affect the meaning of a page.
Blocks inherit the direction, so text flows from the right and bidirectional content (an English product name inside an Arabic sentence) is arranged correctly by the browser. Where a section differs, set dir on that element. For fields holding text of unknown direction, such as a search box or comment field, W3C recommends dir="auto".
The language tag also matters outside design. It helps browsers, screen readers and translation tools. Search engines rely on separate signals, such as hreflang, to connect your Arabic and English pages, covered in bilingual SEO for Kuwait sites.
Use CSS logical properties, not left and right
Many sites use a separate stylesheet to flip everything for Arabic, which doubles the code and leaves mistakes. MDN explains that logical properties describe layout in terms of inline direction (the way text runs in a line) and block direction (the way lines stack), so the same rule adapts when the writing direction changes.
| Instead of | Use |
|---|---|
margin-left | margin-inline-start |
padding-right | padding-inline-end |
border-left | border-inline-start |
left: 0 | inset-inline-start: 0 |
text-align: left | text-align: start |
With these, a margin written once appears on the left in English and on the right in Arabic. If you are working on an existing site, convert the main layout components first: header, navigation, cards, forms and buttons.
What should be mirrored, and what should not
Mirror
- Page layout order: logo on the right, menu flowing from the right, sidebars swapped
- Navigation arrows, back and next buttons, breadcrumbs and carousels
- Progress bars and step indicators in checkout
- Text alignment, list markers and table column order
- Icons that imply direction, such as a reply arrow or a list indent
Leave alone
- Logos and photographs
- Phone numbers, order numbers and prices that read left to right
- Latin brand names, code and URLs inside a sentence
- Media controls such as play and pause, which follow convention
- Icons that don't imply direction, such as a magnifier or a cart
Fonts and text
- Pick an Arabic typeface on purpose. Don't let the browser fall back to a default font that looks heavy or inconsistent beside your English font. Choose an Arabic font designed to work with your Latin one, and load only the weights you use, so pages stay fast (see Core Web Vitals).
- Give Arabic more room. Arabic script has tall and low strokes and dots, so a line height that suits English often feels cramped. Test body text at a larger line height and slightly larger size.
- Don't add letter-spacing. Arabic letters connect, and spacing them apart breaks the joins. Apply any letter-spacing to Latin text only.
- Avoid italics and all-caps tricks. They don't exist in Arabic and a faked slant looks wrong.
- Be consistent with numerals. Decide whether pages use Western digits (0-9) or Arabic-Indic digits, and use the same on prices, phone numbers and dates throughout.
Forms deserve extra attention
Forms are where Arabic sites most often break. Fields for names and messages should accept Arabic and align from the right. Fields for phone numbers, email addresses and card numbers should stay left-to-right even on an Arabic page, since people type those in Latin digits and expect that order. Check that error messages, labels and placeholders are translated and positioned correctly, and that the form saves and emails Arabic text without turning it into question marks. That last point is a common fault, covered in why contact forms fail.
Common mistakes I see
- Text aligned right but the document still set to left-to-right
- A translated page that keeps an English image with English text baked in
- Arrows and sliders that move the wrong way
- Mixed-direction sentences where punctuation jumps to the wrong end
- English-only validation messages on Arabic forms
- A second Arabic site on a different template that no longer matches the English one
- Machine-translated text that nobody who reads Arabic has reviewed
Plugins and platforms
On WordPress, a translation plugin can serve Arabic pages with the right direction, but the theme still has to support RTL, and many themes do so only partly. The trade-offs between plugins are in WPML, Polylang, TranslatePress and Weglot. On Shopify, check that your theme and any apps you use have an RTL version before you buy them.
Test before you launch
- Open every key template on an actual phone with Arabic set as the page language.
- Read the page aloud, or ask a native Arabic reader to, and note anything that looks off.
- Submit forms in Arabic and confirm the saved and emailed text.
- Check pages with mixed English and Arabic, such as product names.
- Check checkout and any step-by-step flow for arrow and progress direction.
If you want this done as part of a bilingual build, it is part of my web development work.
Frequently asked questions
Is it enough to change text alignment to the right?
No. Right alignment alone leaves punctuation, lists, tables, icons and layout order wrong. Setting the document direction to right-to-left (dir="rtl") lets the browser handle the text flow correctly, and your layout then has to follow it.
Should I use CSS or the dir attribute to set direction?
W3C advises using the dir attribute in the markup, not CSS, to set the base direction, because the direction information should remain available even when CSS is not applied.
What are CSS logical properties?
Properties that describe layout relative to the text flow (start and end) instead of fixed left and right. According to MDN, they define direction-relative equivalents of physical properties, so one rule works for both English and Arabic.
Should phone numbers and brand names be mirrored?
No. A phone number, a Latin brand name and a URL keep their own left-to-right order inside an Arabic sentence. Mirror the layout and direction-implying icons, not content that has its own order.
Do Arabic pages need a separate design?
They need the same brand and a layout adapted to read from the right. Treat the Arabic version as a first-class page, not a translated copy of the English one, and test it on real phones.
Related reading
Want your Arabic pages to look built for Arabic readers?
I'll review your Arabic layout or build it right from the start, with correct direction, fonts and forms.