Posts tagged “sizing”
- aspect-ratio meets flex —
aspect-ratio with flex removes the padding-bottom media-card hack.
- the min-width: auto trap —
Flex items default to min-width:auto — long words and big images blow layouts out.
- flex-basis vs width: which one wins —
Set both flex-basis and width and one silently loses. The rule is simple.
- min-content, max-content, fit-content —
Intrinsic sizing keywords name the minimum that flex overflow fights against.