Create a footer div with full width to the screen - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer

Description

Create a footer div with full width to the screen

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">
body {<!--from  www. j  av  a 2  s .co m-->
   margin:0px;
   padding:0px;
}

.body {
   width:100%;
   height:401px;
   background:Chartreuse;
}

.footer {
   width:100%;
   height:61px;
   background:red;
   position:relative;
}
</style> 
 </head> 
 <body> 
  <div class="body"> 
  </div> 
  <div class="footer"> 
  </div>  
 </body>
</html>

Related Tutorials