DEV Community

Toolloom
Toolloom

Posted on • Originally published at toolloom.com on

CSS Logical Properties for Better Layouts

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.

Top comments (0)