martin__n
KPCKevin Powell - Community
•Created by martin__n on 8/14/2023 in #front-end
min-height: max-content;
Hi,
I would like to understand why min-height:max-content does not work in the following example (container2 overflows main when window height is reduced).
I know that a corresponding example in inline direction would work (min-width: max-content), but why doesn't it work in block direction? There is a stackoverflow question about this (https://stackoverflow.com/questions/63740508/what-does-min-height-max-content-mean), but since height:max-content would work as intended for main in the code below, I think it has nothing to do with an "incorrect" calculation of max-content.
Does anyone know why this isn't working?
Thanks in advance
6 replies