Chuyển CSS layout từ LTR sang RTL cho Arabic, Hebrew
Paste LTR CSS và click Convert to RTL
Công cụ chuyển CSS layout từ LTR (Left-to-Right) sang RTL (Right-to-Left) cho Arabic, Hebrew. Convert left/right, margin, padding, float, text-align properties.
Khi localize website cho Arabic, Hebrew, Persian, Urdu languages, bạn cần flip layout từ LTR sang RTL. Manual conversion rất tốn thời gian và dễ sai sót. RTL Layout Converter tự động convert CSS properties, giúp bạn support RTL languages nhanh chóng và chính xác.
Arabic: 420M speakers, Middle East, North Africa. Hebrew: 9M speakers, Israel. Persian (Farsi): 110M speakers, Iran. Urdu: 230M speakers, Pakistan, India. Large markets với high internet penetration. E-commerce potential: Middle East e-commerce = $50B+/year.
Use dir='rtl' attribute. Separate RTL stylesheet. Use logical properties: margin-inline-start thay vì margin-left. Test với actual content. Mirror icons và images. Don't flip numbers, Latin text. Use CSS logical properties (margin-inline, padding-block). Test với screen readers.
Modern approach: margin-inline-start/end thay vì left/right. padding-block-start/end thay vì top/bottom. inset-inline-start/end thay vì left/right. Browser support: 95%+ modern browsers. Benefits: automatic RTL support, cleaner code, future-proof.
Recommended. Create style-rtl.css với converted CSS. Load conditionally: <link rel='stylesheet' href='style-rtl.css' dir='rtl'>. Hoặc dùng CSS logical properties để avoid separate files.
Check HTML lang attribute: <html lang='ar' dir='rtl'>. JavaScript: document.dir === 'rtl'. CSS: [dir='rtl'] selector. Server-side: detect từ Accept-Language header hoặc user preferences.
Không. Flip: layout, navigation, text alignment. Không flip: numbers, Latin text, logos, icons có meaning (arrows có thể flip), media controls. Test với native speakers.
Có! margin-inline-start tự động adapt LTR/RTL. Cleaner code, no separate stylesheets. Browser support tốt (95%+). Future-proof. Recommended cho new projects. Migrate dần cho existing projects.
Browser DevTools: change dir attribute. Use RTL bookmarklet. Test với actual Arabic/Hebrew content. Ask native speakers. Use accessibility tools. Test trên mobile devices. Check text overflow, alignment.
RTLCSS: PostCSS plugin, auto-convert. Webpack RTL Plugin. Gulp-rtlcss. Online tools như tool này. CSS-in-JS libraries có RTL support built-in (styled-components, emotion).
Minimal. Separate stylesheet: thêm 1 HTTP request. CSS logical properties: no impact. Conditional loading: chỉ load khi cần. Gzip compression: CSS compress tốt. Overall impact: <5% page load time.
Có! RTL layout chỉ là 1 phần. Cần: translate text content, localize dates/numbers/currency, adapt images/icons, cultural adaptation. Use i18n libraries: react-intl, i18next, vue-i18n.
Chúng tôi không chỉ thiết kế website, mà còn giúp doanh nghiệp xây dựng thương hiệu số mạnh mẽ. Cung cấp dịch vụ thiết kế website trọn gói từ thiết kế đến tối ưu SEO. Hãy liên hệ ngay với Tấn Phát Digital để cùng tạo nên những giải pháp công nghệ đột phá, hiệu quả và bền vững cho doanh nghiệp của bạn tại Hồ Chí Minh.
Tạo file .env và .env.example cho dự án.
Tạo .gitignore cho Node.js, Python, Java.
Tạo mock JSON data cho API testing.
Format và phân tích API response.
Test REST API: GET, POST, PUT, DELETE.
Chuyển đổi Binary, Hex, Base32.
Mã hóa/giải mã Base64.
Chuyển đổi Decimal, Binary, Hex.
Tạo CSS box-shadow trực quan.
Tính quyền file Linux.
Kiểm tra WCAG accessibility.
Tạo bảng màu ngẫu nhiên.