Daily Software Tips & Tricks
Bite-sized knowledge to improve your coding skills daily.
CSS Logical Properties for Better Layouts
April 19, 2026
If you're building apps that might be translated into right-to-left languages like Arabic or Hebrew, start using CSS Logical Properties. Instead of using margin-left or padding-right, try margin-inline-start and padding-inline-end. These properties automatically adjust based on the text direction of the document, making your UI globally friendly without needing extra CSS overrides or complex logic.