After your main-wrapper-block
ends, put a div <div style="clear:both"></div>
This happen because when you float
child elements, they does not behave like normal block elements, thus parent did not get proper height. Whenewer you use float
use clear:both
to prevent this problem. You page got previous height cause you have given min-height to divs.