force a footer to the bottom of a wrapper with overflow:hidden - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer aligned bottom

Description

force a footer to the bottom of a wrapper with overflow:hidden

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">
#nav {<!--from w w  w .j a v a  2  s.c o  m-->
   background:skyblue;
   padding:9px 9px 351px 9px;
   font-weight:bold;
   float:left;
}

#wrapper {
   width:81%;
   min-width:961px;
   background:Chartreuse;
   box-shadow:9px 9px 9px gray;
   margin-left:auto;
   margin-right:auto;
   overflow:hidden;
}

#footer {
   font-size:76%;
   clear:both;
}
</style> 
 </head> 
 <body> 
  <div id="wrapper"> 
   <div id="nav"> 
    <ul> 
     <li> <a href="home.html">L</a> </li> 
     <li> <a href="a.html">L</a> </li> 
     <li> <a href="b.html">L</a> </li> 
     <li> <a href="c.html">L</a> </li> 
    </ul> 
   </div> 
   <div id="content"> 
    <h2>Lorem i</h2> 
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat v</p> 
   </div> 
   <div id="footer"> 
    <p>Lorem ipsum dolor sit amet, cons<br> <em>Lorem ipsum dolor </em> </p> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials