Daily Software Tips & Tricks

Bite-sized knowledge to improve your coding skills daily.

Use CSS Logical Properties for Better Accessibility

March 16, 2026

Instead of reaching for margin-left or padding-right, start using logical properties like margin-inline-start or padding-inline-end. Why? Because these properties adapt automatically based on the writing direction of the document. If your app ever needs to support Right-to-Left (RTL) languages like Arabic or Hebrew, your layout will "just work" without you having to write a single line of override CSS. It’s a small change that makes your codebase much more robust and inclusive.