css auto height code example
Example 1: css height property
height: 300px;
height: 25em;
height: 75%;
height: max-content;
height: min-content;
height: fit-content(20em);
height: auto;
height: inherit;
height: initial;
height: unset;
Example 2: css height auto vs 100
<div style="height:50px">
<div id="innerDiv" style="height:auto">
<div id="evenInner" style="height:10px">
</div>
</div>
</div>
Example 3: css height auto vs 100
<div style="height:50px">
<div id="innerDiv" style="height:100%">
</div>
</div>