Forum Moderators: not2easy
height: auto;
is correct.
autotells the browser to give a block the default height. As if no height was defined at all.
What exactly does "auto" do
It allows the content to dictate the height of the box.
Or if you prefer the complicated version [w3.org]...
If 'height' is 'auto', the height depends on whether the element has any block-level children and whether it has padding or borders:If it only has inline-level children, the height is the distance between the top of the topmost line box and the bottom of the bottommost line box.
If it has block-level children, the height is the distance between the top border-edge of the topmost block-level child box that doesn't have margins collapsed through it and the bottom border-edge of the bottommost block-level child box that doesn't have margins collapsed through it.
cEM