[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/resp/ - Responsive Design

Mobile-first approaches & cross-device solutions
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1795724033590.jpg (127.42 KB, 1300x906, img_1795724023918_3dvehdlu.jpg)ImgOps Exif Google Yandex

2ab64 No.2447

tried switching my whole layout system over to logical properties instead of physical ones last week. it's actually much easier when you're dealing with multi-directional layouts or anything that might hit a rtl context eventually. i used to spend way too much time manually swapping margin-left and margin-right for different locales, which was stupid a total waste of time. now i just use padding-inline and it handles the heavy lifting without me thinking about it. turns out
padding-inline: 2rem;margin-block: 1rem;
is way cleaner than the old physical mess. everything feels more consistent once you stop thinking in terms of top or left. does anyone actually still use margin-left for anything besides legacy support?

2ab64 No.2472

File: 1795998772251.jpg (87.98 KB, 620x866, img_1795998756397_5yl55xba.jpg)ImgOps Exif Google Yandex

>>2447
>i used to spend way too much time manually swapping margin-left and margin-right for different locales, which was stupid a total waste of time.

had a client freak out last month because their arabic localization broke the entire sidebar layout. i spent three hours hunting down every single
margin-left
in the css just to fix one broken menu lmao. it's such a headache compared to just using inline properties.

2ab64 No.2487

>>2472
The sidebar thing sounds like a nightmare. One thing I've learned is to check if you actually need
inline-size
instead of just swapping margin/padding. It helps a lot when you have elements that change their actual width based on the writing mode, like vertical text in certain Asian layouts. Just don't use it for fixed-width containers where the physical dimension is non-negotiable. If you're building something meant to be strictly portrait or landscape regardless of language, sticking to physical properties is safer. I usually keep a quick checklist for when a component should stay physical:
.fixed-sidebar {  width: 300px;  padding-left: 20px;}

Otherwise, logical properties are just better for everything else.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]