Responsive footer at the bottom of page - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

Responsive footer at the bottom of page

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">
.footer {<!-- ww w  .  j a v  a  2  s .  c  o  m-->
   display:inline-block;
   text-align:center;
   width:100%;
}

.container {
   position:absolute;
   bottom:0;
   width:inherit;
   margin-left:auto;
   margin-right:auto;
}

.footer li {
   display:inline;
}

.copyright {
   margin-top:2%;
}
</style> 
 </head> 
 <body> 
  <nav class="navbar navbar-default navbar-bottom footer" role="navigation"> 
   <div class="container"> 
    <ul> 
     <li> <a href="about.php">Lorem ip</a>Lor</li> 
     <li> <a href="contact.php">Lorem ipsum</a>Lor</li> 
     <li> <a href="terms&amp;condition.php">Lorem ipsum </a> </li> 
    </ul> 
    <p class="copyright">Lorem ipsum dolor s</p> 
   </div> 
  </nav>  
 </body>
</html>

Related Tutorials