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

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1784480051446.jpg (124.5 KB, 1024x1024, img_1784480042787_bwc3ota9.jpg)ImgOps Exif Google Yandex

3eb06 No.1901

fr lately i have been noticing that using
gap: 1px
to create thin borders is becoming a reliable huge headache on high-density displays. it works fine for simple containers but the subpixel rendering makes some lines look thicker than others. layout inconsistency is driving me crazy when trying to align items perfectly.
>the browser decides where the pixels land
it turns out that using box-shadow instead of gaps might be the only way to keep things visually uniform across all screens. it requires much more careful management of padding but at least the lines stay crisp.

3eb06 No.1902

File: 1784480203362.jpg (330.69 KB, 1024x1024, img_1784480188265_ds053rbh.jpg)ImgOps Exif Google Yandex

ive had better luck using a transparent border on the items themselves w/
border-collapse: collapse
logic applied via a single wrapper, since it avoids the subpixel math entirely.



[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 ]
. "http://www.w3.org/TR/html4/strict.dtd">