Visit the following link for an example of a sticky footer table layout:
The code snippet is also provided below:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8>
<title>Sticky Footer Table Layout</title>
<style type="text/css">
html,body{height:100%;margin:0;}
#container{
table-layout:fixed;border-collapse:collapse;
height:100%;width:100%;background:#FCD116;
}
#container td{padding:0;}
/* ie 6/7 needs some top/bottom padding on footer for margin of children to show */
#container #content, #footer{padding:1em;}
#content{vertical-align:top;}
#footwrap{vertical-align:bottom;}
#footer{
background:#555;overflow:hidden;
}
#content h1{text-align:center;}
</style>
<!--[if IE 7]>
<style type="text/css">
#footer{overflow:visible;}
</style>
<![endif]-->
</head>
<body>
<table id="container">
<tr><td id="content">
<h1>Sticky Footer Table Layout</h1>
<p>Puppies are better than kittens because they are more loyal and dumber and don't wake you up in the middle of the night. But kittens are better because they are cuter and go outside to pee.</p>
<p>Puppies are better than kittens because they are more loyal and dumber and don't wake you up in the middle of the night. But kittens are better because they are cuter and go outside to pee.</p>
<p>Puppies are better than kittens because they are more loyal and dumber and don't wake you up in the middle of the night. But kittens are better because they are cuter and go outside to pee.</p>
<p>Puppies are better than kittens because they are more loyal and dumber and don't wake you up in the middle of the night. But kittens are better because they are cuter and go outside to pee.</p>
<p>Puppies are better than kittens because they are more loyal and dumber and don't wake you up in the middle of the night. But kittens are better because they are cuter and go outside to pee.</p>
</td></tr>
<tr><td id="footwrap">
<div id="footer">
<p>This is an example of a tables sticky footer. <br>We don't have to set its height.</p>
</div>
</td></tr>
</table>
</body>
</html>