FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
RTL Mastery: Beyond Just dir="rtl"
How-ToWeb Development

RTL Mastery: Beyond Just dir="rtl"

via Dev.to ReactSyed Ahmed Mohi Uddin Hasan3w ago

When building for the KSA market, many developers think adding dir="rtl" to the tag is the finish line. In reality, that is just the starting blocks. Truly high-performance, localised apps require a "mirror-first" mindset to ensure a "pixel-perfect" experience for Arabic-speaking users. In my experience launching production sites like DarElite, I've found that deep RTL support is what separates a translated site from a truly localised one. Here is a guide on going beyond the basics. Use CSS Logical Properties Stop thinking in "left" and "right." Use logical properties to let the browser handle the heavy lifting based on the document direction. Margin/Padding: Use margin-inline-start instead of margin-left. Borders: Use border-end-start-radius for specific corners. Tailwind Strategy: If you use Tailwind CSS, leverage the start and end utilities (e.g., ps-4 instead of pl-4). Icons: To Mirror or Not to Mirror? This is where most UI/UX bugs hide. Not every icon should be flipped. Mirror th

Continue reading on Dev.to React

Opens in a new tab

Read Full Article
10 views

Related Articles

Building an MCP Server for Your Own Tools
How-To

Building an MCP Server for Your Own Tools

Medium Programming • 6d ago

[MM’s] Boot Notes — The Day Zero Blueprint — Test Smarter on Day One
How-To

[MM’s] Boot Notes — The Day Zero Blueprint — Test Smarter on Day One

Medium Programming • 6d ago

RHAPSODY OF REALITIES - 26TH MARCH 2026
"In Nehemiah’s day, as the people built the wall of…
How-To

RHAPSODY OF REALITIES - 26TH MARCH 2026 "In Nehemiah’s day, as the people built the wall of…

Medium Programming • 6d ago

How to Actually Make Money with a "Free" App
How-To

How to Actually Make Money with a "Free" App

Medium Programming • 6d ago

How-To

Building a Runtime with QuickJS

Lobsters • 6d ago

Discover More Articles