Hello I'm trying to code a HTML5 website and I've been stuck on trying to get the footer to stay aligned at the bottom of the webpage. I want the footer to also have the background cover the full width of the wrapper (not the browser page). But the footer would always become off centered or not aligned properly if the webpage got too big.
any ideas?
Thanks.
html {
height: 100%;
}
body {
font: normal 16px/18px helvetica,arial,sans-serif;
color: #555;
margin: 0;
padding: 0;
background: url(images/bg.jpg) repeat;
height: 100%
}
div#wrapper {
width: 1000px;
margin: 0 auto;
background: #fff;
overflow: hidden;
height: auto;
min-height: 100%;
}
footer {
position: relative;
width:1000px;
text-align-center;
float: left;
height: 60px;
margin: 0;
border: 0;
padding:0;
border-top: 1px solid #ddd;
background-color:#06C;
}
edit: whops forgot to correct it in the post.
[edited by: omegaone at 9:28 pm (utc) on Feb 5, 2012]