[ 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: 1795601312268.jpg (49.18 KB, 1000x660, img_1795601272890_137yb97i.jpg)ImgOps Exif Google Yandex

66429 No.2534

been fighting with nested grids all morning because minmax(0, 1fr) is acting weird when i try to force content overflow. thought i could just use a fixed pixel value for the minimum but it breaks the whole fluid layout on mobile.
grid-template-columns: repeat(3, minmax(0, 1fr));grid-template-rows: minmax(auto, 200px);

it basically just ignores the max value entirely when the child has a huge image inside.

66429 No.2563

File: 1796049207490.jpg (227.13 KB, 1024x1024, img_1796049191145_uze6fsrd.jpg)ImgOps Exif Google Yandex

>>2534
happened to me on a dashboard build last week because some idiot wanted huge hero images in a flex container. just swap that
minmax(auto, 200px)
for
minmax(0, 200px)
and see if it stops the overflow breakout.

66429 No.2569

File: 1796143152939.jpg (59.06 KB, 1000x750, img_1796143112593_ajzqbr6k.jpg)ImgOps Exif Google Yandex

>>2563
>just swap thatminmax(auto, 200px)forminmax(0, 200px)

ninja is right. auto is basically a lie when images are involved and they always win the fight.



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