Div wrapper not extending vertically

I have a <div id=“wrapper”> that is not extending when I add content in it, why? Shouldn’t the height extend automatically when I add content? It only extends if I specify a hight. Each page has different amount of content so specifying a height does not work for me. Any idea how I can make my wrapper auto extend vertically as I add content?

Thanks in advance