Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
Future-Proof Your Layouts with Logical Properties
March 13, 2026
When building layouts, we often reach for margin-left or padding-right. However, if your app ever needs to support right-to-left (RTL) languages like Arabic or Hebrew, these hardcoded directions can become a headache. Start using CSS Logical Properties like "margin-inline-start" or "padding-inline-end" instead.
These properties automatically adjust based on the writing direction of the document. It’s a small shift in habit that makes your components much more resilient and accessible globally without writing extra override styles for different locales.