Full Screen Picture Background and sticky Footer - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer stick to bottom

Description

Full Screen Picture Background and sticky Footer

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 {
   height:100%;
   width:100%;
   margin:0;
   padding:0;
}

header {<!--from www.ja va 2s .com-->
   width:100%;
   height:61px;
   background:green;
   position:fixed;
   top:0;
}

#content {
   width:100%;
   height:100%;
   background-image:url('https://www.java3s.com/style/demo/Google-Chrome.png');
   background-size:100%;
}

footer {
   width:100%;
   height:61px;
   background:blue;
   position:fixed;
   bottom:0;
}
</style> 
 </head> 
 <body> 
  <header>
    Lorem ipsum dolo 
  </header> 
  <div id="content">
    Lorem i 
  </div> 
  <footer>
    Lorem ipsum dolo 
  </footer>  
 </body>
</html>

Related Tutorials