From what I understand, setting height to auto will make it so that the parent container will adjust to the height of the child elements inside. But, isn't that on by default, anyways? Consider, the example below:
#outer {
border: 3px solid red;
height: auto;
}
#inner {
border: 1px solid blue;
height: 300px;
}
<div id = 'outer'>
<div id = 'inner'> inner </div>
</div>
Using or not using height:auto, the parent div still adjust to the height of the child div. In this case, what can we use height: auto on?