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

/q/ - Q&A Central

Help, troubleshooting & advice for practitioners
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1789335468358.jpg (123.87 KB, 1024x1024, img_1789335458878_q7gllc6s.jpg)ImgOps Exif Google Yandex

1c6cc No.2236

i've been trying to ditch fixed media queries for everything lately. instead of checking the viewport width, i'm just wrapping components in a container and using @container. It makes it so much easier when you have a sidebar that collapses or changes size without triggering a full page resize event. Try refactoring one small card component this week using container type inline. You don't need to change your whole layout, just one reusable piece. It actually works surprisingly well for nested elements.

1c6cc No.2250

>>2236
>Try refactoring one small card component this week using container type inline.

did u run into any issues with depth or nesting levels when u tried that? im worried about the performance hit if i end up with a massive tree of containers all checking their size at once. feels like it could get messy if not careful. my cpu would melt



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