I have searched the web for the answer about a sticky footer, and have found a partial answer to my question. I have placed a fixed position on my footer wrapper so as the browser screen is re-sized the footer always sticks to the bottom. This works great with large screens but as soon as the screen becomes smaller the footer goes behind the wrapper content area. Please, can someone tell me how to apply this sticky footer so that it clears the wrapper and content area? See the following code
HTML CODE:
<html>
<body>
<div id="master-wrapper">
<div class="wrapper">
<div class="main-content clearfix">
<div class="can-wrapper">
<div class="can-img"></div><!-- end .can-img -->
</div><!-- end .can-wrapper -->
</div><!-- end .main-content -->
</div><!-- end .wrapper -->
<div class="footer-wrapper">
<footer>
</footer>
</div><!-- end .footer-wrapper -->
</div><!-- end #master-wrapper -->
</body>
</html>
CSS CODE:
html {height:100%;}
body {
margin:0px;
padding:0px;
top:0;
width:100%;
height:auto;
min-height: 100%;
min-width: 100%;
}
#master-wrapper {overflow: hidden; position: relative; width: 100%; height:100%; min-height:100% }
.wrapper {margin:196px auto -4em; position: relative; width: 950px; padding:0px 20px 156px; min-height:100%; z-index:1;}
.footer-wrapper {position:fixed; margin-top:-139px; clear:both; bottom:0; width:100%; height:139px; background:#C0A18F;}
footer {margin:50px auto; width:950px; padding:0px;}
What I need is for the footer to start to stick after about 800px(H) almost an 800px margin-top value.
I GREATLY APPRECIATE ANY HELP WITH THIS !!