Sticky footer with 100% width - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer stick to bottom

Description

Sticky footer with 100% width

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
html, body {
   margin:0;
   padding:0;
   height:100%;
   min-width:100%;
}

#pagecontainer {<!--from w w w  .j a  v a 2s  .c  o  m-->
   min-height:100%;
   min-width:100%;
   position:relative;
}

#bigContent {
   background:black;
}

#footer {
   background:blue;
   clear:left;
   bottom:0px;
   width:100%;
   height:100px;
}
</style> 
 </head> 
 <body> 
  <div id="pagecontainer"> 
   <div id="anyContent"></div> 
   <div id="pagecontent" style="width:5000px;"> 
    <div id="bigContent" style="height:3000px;"></div> 
    <div id="footer"></div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials