Footer rendering with absolute position - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer

Description

Footer rendering with absolute position

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
  <style type="text/css">
body {<!--   www  .ja  v  a 2  s.  c o m-->
   margin:0;
   padding:0;
   line-height:2;
   font-size:13pt;
   height:21mm;
}

.footer {
   position:absolute;
   bottom:0;
   left:0;
   right:0;
}
</style> 
 </head> 
 <body> 
  <div class="footer">
    Lorem 
   <b>Lore</b>Lorem ip 
   <br> 
   <i style="color:blue;">Lorem ips</i> 
  </div>  
 </body>
</html>

Related Tutorials