Full Screen Header - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Header

Description

Full Screen Header

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,<!-- w w  w. ja  v a2  s.  c  o m-->
body {
   height: 100%;
   margin: 0;
   padding: 0;
}
.header {
   background: url(https://www.java2s.com/style/demo/Opera.png) no-repeat center center fixed;
   -webkit-background-size: cover;
   -moz-background-size: cover;
   -o-background-size: cover;
   background-size: cover;
   height: inherit;
}


      </style> 
 </head> 
 <body> 
  <div class="header"> 
  </div> 
  <p>Content below header</p>  
 </body>
</html>

Related Tutorials