Right-to-left (RTL) design is not just a mirrored copy of the left-to-right layout. Arabic readers scan the page from the right, and small mismatches make an interface feel translated rather than built for them.

Start with the document direction

Set dir="rtl" and lang="ar" on the root element. Browsers then flip text alignment, scrollbars and the default order of inline elements. Do this before you write any CSS, so the rest of the work builds on the right foundation.

Mirror layout, but not everything

  • Navigation, progress bars, back arrows and carousels should flip.
  • Logos, photographs of people, clocks and playback controls usually should not.
  • Numbers and Latin words inside Arabic sentences keep their own direction. Wrap them with dir="ltr" where needed.

Choose type with care

Arabic letters connect, and they need more vertical space than Latin letters. Use a typeface designed for Arabic, give body text a line height of at least 1.7, and avoid tight letter-spacing, which breaks connected letterforms.

Check forms and tables

Labels sit on the right, input fields follow, and error messages align to the start of the field. Table columns read from right to left, so the first column is on the right.

Test with real Arabic content

Lorem ipsum hides problems. Real Arabic headlines are often longer than English equivalents, and they wrap differently. Test the longest real paragraph on the smallest phone you support.

Quick checklist

  • Root element has dir and lang set to rtl and ar.
  • Directional icons flip, neutral icons do not.
  • Line height and font size are generous for Arabic.
  • Mixed Arabic and English text is tested.
  • Forms, tables and menus are checked in both directions.

Building for both languages from the first wireframe is far cheaper than retrofitting RTL later. That is how we approach every bilingual project.