[ 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: 1793533208411.jpg (137.01 KB, 1024x1024, img_1793533200297_eemgki6d.jpg)ImgOps Exif Google Yandex

cb781 No.2423

i've been trying to fix this header layout all morning and it's driving me insane. whenever you set an aspect ratio on a child inside a flex container, the browser just ignores it if there's any extra space.
>it should respect the ratio regardless of the flex basis
.item {aspect-ratio: 1 / 1;flex: 0 1 auto;}

it basically behaves like it's not even there once the content grows. does anyone actually have a working setup for this without using some ridiculous padding hack?


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