[ 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: 1794617424745.jpg (53.21 KB, 942x607, img_1794617416018_44t7yhcr.jpg)ImgOps Exif Google Yandex

40d79 No.2380

been looking at this layout for an hour and it's driving me nuts. i tried to use a standard media query but the component breaks when it's shoved into that narrow sidebar on the dashboard. it doesn't matter how much space the viewport has if the parent is only 300px wide. i finally switched to @container so the cards actually look right regardless of where they live. it's basically magic for components but setting up the container type everywhere is such a pain in the neck.

.sidebar-container {container-type: inline-size;}


it feels like i'm just rewriting all my old media queries anyway. does anyone actually use container queries for anything other than simple card layouts?


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