I have problem with the footer on my xhtml pages ... i want to put the footer always at the end of the page, at the bottom of it, so that when a page is poor in content the footer will stick to the bottom of the screen, but when a page is much longer it will stick at the end, after the last content of the page
How can i do it???
This is my CSS file
html {
height:98%;
margin: 0 auto 0 auto;
width:1280px;
padding:2px;
padding-bottom:0px;
}
body {
overflow:auto;
width:100%;
margin: 0 auto 0 auto;
height:100%;
}
#container {
min-height:100%;
height:100%;
margin:0 auto -50px;
}
#box {
min-height:100%;
}
#push {
height:50px;
clear:both;
}
#footer {
height:50px;
clear:both;
position:relative;
bottom:0px;
width:100%;
}
And this the structure of my page
<html>
<h:head></h:head>
<h:body>
<div id="conatiner">
<div id="box">
<header></header>
<div id="externalborder">
<div id="push"></div>
<div id="footer"></div>
</div>
</div>
</h:body>
</html>