Just another "Sticky Footer" problem.
HTML:
<body id="mainbody">
<div class="wrapper">
<div id="header">
</div>
<div id="navbar">
</div>
<div id="sidebar">
</div>
<div id="content">
</div>
<div class="push"></div>
</div>
<div class="footer">
<p>© LOREM IPSUM DOLOR ...</p>
</div>
Css:
.footer {
text-align:center;
color:#ffffff;
position: relative;
z-index: 10;
margin-bottom: 0px;
line-height:30px;
width:1100px;
left:100px;
border:1px solid #777777;
background:#261f1f;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
-moz-box-shadow: 5px 5px 5px #000000;
-webkit-box-shadow: 5px 5px 5px #000000;
box-shadow: 5px 5px 5px #000000;
}
/*Footer to buttom*/
html, body {
height: 100%;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -32px;
}
.footer, .push {
height: 30x;
clear:both;
}
I have read many posts here on this site and other. When I use position: fixed in footer, the footer sticks to bottom of browser "window" or "screen". It remains there whether I rescale or move. This covers main content but at least stays at bottom always
When I use position: relative; it stays at the bottom if the scroll bar is at top. But as I scroll bar down, the footer moves over the main content, not even at the bottom.
What mistake did I make? I want the footer to stay at bottom: below all contents of the page.
Here is what happens on using fixed: