Skip to main content
BarcelonaJun 18 — Jun 24 · 6 days
  • FlightConfirmed
  • HotelConfirmed
  • TourNot booked
  • TransferNot booked
Open trip
Sign in Create account
  1. Home
  2. RTL

RTL version

The same components in a right-to-left document. Two changes, no forked stylesheet.

This page is the whole RTL setup.

Two changes: dir="rtl" on the <html> element, and css/rtl.css loaded last. Everything else here is the same markup and the same components as the rest of the template.

Why there is so little to it

The stylesheets use logical properties — margin-inline-start rather than margin-left, text-align: start rather than left. Those follow the document direction on their own, so most of the layout flips with no override at all.

rtl.css covers only the three things logical properties cannot express: positioned elements whose offset pairs with a transform, glyphs that carry a direction, and anything anchored to a corner. Every rule in it is scoped to [dir="rtl"], so loading it on a left-to-right page changes nothing.

Numbers stay left to right

Prices, times, flight codes and booking references read left to right even in an Arabic or Hebrew document. Without that rule $1,240 renders as 240,1$ — the classic giveaway of a template that was flipped rather than translated.

Components, flipped

Card

Form

Timeline

  1. 08:30اللقاء

    قهوة في الساحة

    المرشد ينتظر تحت الأقواس مع ملف أزرق.

  2. 09:00ساعتان

    الحي القوطي سيرًا على الأقدام

    السور الروماني والكاتدرائية قبل الحادية عشرة.

Accordion and alerts

لا. كل عملية دفع تعمل كضيف.

تم تأكيد الحجز

القسيمة في طريقها إلى بريدك.