Arabic support is usually the last thing added to a website template, and it is the first thing a client in the Middle East checks. I built twelve small business templates (clinic, gym, salon, restaurant, real estate, SaaS) that each ship in English, Arabic, French and Spanish. The RTL pass took longer than the design did. Here is what broke, in the order it broke.
1. "left" and "right" are the wrong words
Every margin-left, padding-right, text-align: left and left: 24px is a bug waiting for dir="rtl". Logical properties fix most of it in one pass:
.card { margin-inline-start: 24px; padding-inline-end: 16px; text-align: start; } For the few places that genuinely need to know the direction (a decorative line, a photo that should always sit on the outer edge), use [dir="rtl"] .thing { ... } instead of flipping everything with a global rule. A blanket transform: scaleX(-1) on the body is how you end up with mirrored text and a backwards logo.
2. Bundle an Arabic font
Arabic falls back to whatever the OS has, and that varies wildly between Windows, Android and iOS: different letter shapes, different line heights, different weights. I bundle Cairo as a woff2 and set it only for Arabic:
html[lang="ar"] body { font-family: "Cairo", system-ui, sans-serif; line-height: 1.8; } Arabic needs more line height than Latin. Text that looks airy in English looks cramped in Arabic at the same line-height.
3. Numbers, prices and emails need direction control
Inside an RTL paragraph, "24/7", "$19" and "info@example.com" get reordered by the bidi algorithm. Wrap them:
<bdi>info@example.com</bdi> <bdi dir="ltr">+20 100 000 0000</bdi> <bdi> isolates a run of text without changing the paragraph direction. For phone numbers and emails I also force dir="ltr" so the digits stay in reading order.
4. Mirror the arrows, not the icons
A chevron pointing right in an LTR "next" button must point left in RTL. A logo, a play button, a clock and a photograph must not. I keep a tiny list of icons that flip:
[dir="rtl"] .icon-chevron { transform: scaleX(-1); } Everything else stays untouched. Reviewing this list took ten minutes and saved a lot of embarrassment.
5. Forms need dir="auto" on the free-text fields
A name field with dir="rtl" hard-coded shows "Ahmed" right-aligned with the cursor on the wrong side, and an email typed into an RTL input is a nightmare to proofread. Set dir="auto" on inputs and textareas so the browser decides per value, and keep the layout direction on the container.
6. Prevent the flash of LTR
The language switcher stores the choice in localStorage, but the page still renders once in the default language before the script runs. Set lang and dir on <html> as early as possible, in an inline script in <head>:
<script> var lang = localStorage.getItem("lang") || "en"; document.documentElement.lang = lang; document.documentElement.dir = (lang === "ar") ? "rtl" : "ltr"; </script> Then keep the per-language <link rel="alternate" hreflang> and canonical tags correct, because Google indexes each language separately.
7. Test by flipping the switch
The cheapest test I found: load the English page, then flip document.documentElement.dir = "rtl" in the console. Anything that jumps, overlaps or looks glued to the wrong edge is a hard-coded direction. Ten seconds per page, and it catches what a code review misses.
That is the whole list. None of it is exotic, but all of it has to be done deliberately, and it is invisible until someone opens the Arabic version.
I put the result of this work into twelve ready-to-edit templates (plain HTML/CSS/JS, no build step, each in EN/AR/FR/ES with live demos). If you would rather start from one of those than from a blank page, they are here: https://toptemplates.gumroad.com
Disclosure: I sell those templates, so take the recommendation with the usual grain of salt. The tips above stand on their own.

