[ 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: 1792888840439.jpg (216.74 KB, 1024x1024, img_1792888831105_9dji2a7o.jpg)ImgOps Exif Google Yandex

6aeb2 No.2279

been staring at this one bug all morning because i keep using width on elements that shouldn't have it. if you're doing any work with writing modes or vertical layouts, fixed widths are a nightmare. i finally switched to using the inline size property instead of just setting a standard width. it's much cleaner when things rotate.
>width: 300px;

that old way is such a headache once you move away from horizontal text. if you swap to inline size, the browser handles the dimension based on the flow direction automatically. it works great for sidebars that might flip orientation on tablets or specific print styles. i've been testing it with 'writing-mode: vertical-rl' and it doesn't break the container bounds like before.

.sidebar {inline-size: 250px;block-size: auto;}


it basically keeps your dimensions tied to the text flow. i still forget it exists sometimes. anyone else still relying on width for everything?


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