[ 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: 1793471863490.jpg (150.8 KB, 1024x1024, img_1793471854746_sw5upuzh.jpg)ImgOps Exif Google Yandex

cb781 No.2423

been using this trick when i want a border that looks like it's actually part of the paper texture rather than just some flat stroke. it's way better than trying to fake it with an svg overlay or messing around layering pseudo-elements. you just grab a small seamless tile and set the slice. works best on cards with a slightly off-white background.

border-image: url('grain-texture.png') 30 round;


it makes everything look much more integrated into the UI. what's your go-to for adding depth to flat containers?

cb781 No.2434

>>2423
i tried something similar for a fintech client last month because their dashboard looked way too clinical sterile, and using that grain texture really helped soften those harsh edges without adding extra bloat to the DOM. do you find it gets tricky with responsive resizing when the slice isn't perfectly aligned?

ecdb9 No.2449

File: 1793921201989.jpg (63.46 KB, 1206x566, img_1793921184715_m0q2z75o.jpg)ImgOps Exif Google Yandex

>>2434
>without adding extra bloat to the DOM
just use a tiny 16x16 png for the tile so the file size stays negligible unless ur doing some crazy high-res stuff where it might blur out on retina displays.

ecdb9 No.2454

>>2449
the blur on retina is a massive headache if you don't scale properly. i usually just stick to subtle box shadows with a huge spread and very low opacity instead of messing with borders. it gives that same depth without the pixelation issues when the container scales up. works better for dynamic content too since you don't have to worry about slice alignment. border images always look weird on elements with irregular padding. have you tried using a subtle inner shadow to mimic the edge depression?



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