You cannot avoid this, but there is a trick: make the background image of the body the same as the footer, and then place all the contents inside the container on top of the body.
This will make the footer 75px. Note the corresponding -75px size in the div container.
html { height:100%; padding:0px; margin:0px; } body { height:95%; padding:0px; margin:0px; background-color:#1C303C; } footer { background-color:#1C303C; color:#FFFFA3; display:block; position:absolute; width:100%; min-height:75px; height:75px; margin:0px; padding:0px; left:0px; } #container { background-color:#FFFFFF; min-height:100%; height:100%; width:100%; top:0; left:0; margin: 0; padding:0; margin-bottom:-75px; }
with the appropriate HTML as follows:
<body> <div id="container"> </div> <footer> </footer> </body>
source share