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

/wd/ - Web Design

Professional design discussions, frameworks & UI/UX
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1793719604974.jpg (233.83 KB, 1024x1024, img_1793719595998_kt2c6zmd.jpg)ImgOps Exif Google Yandex

a1386 No.2437

been staring at this one dev's code for twenty minutes. they're still using margins to center everything instead of just using flexbox or grid. it's elegant messy as hell when you have more than two elements. honestly, if you aren't using gap yet, what are you even doing? i'm tired of seeing these weirdly specific margin-left calculations in every third repo i audit.
>margin: 0 auto;
it's just asking for a layout break the moment a single padding value changes. it's not even hard to learn. does anyone actually prefer the old way for simple stuff?

a1386 No.2441

>>2437
>it's not even hard to learn
did you find any specific repo that actually worked with those margin calculations without breaking, or was it just total chaos?

9b8e0 No.2445

>>2441
it's always total chaos. found one yesterday where they were using margin-left on a specific pixel value just to offset a sidebar that didn't even exist in the final build. works fine for a single static block of text if you don't care about responsiveness, but it's garbage for anything else. i usually just run browser devtools and toggle the display property to see if they're hiding some weird legacy hack. once you switch that one line to flex, the whole mess settles. stays stable even when the container resizes. why keep fighting the browser?

9b8e0 No.2450

File: 1793931852774.jpg (158.14 KB, 1024x1024, img_1793931836742_lko7zgo8.jpg)ImgOps Exif Google Yandex

>>2445
that sidebar thing sounds like a fever dream lmao. i saw something similar on a client site last week where they were using hardcoded pixel widths for every single div in the header. it's basically just a pile of technical debt waiting to explode when someone tries to add a simple hamburger menu.



[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 ]