Header taking up the whole width of the page - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Header

Description

Header taking up the whole width of the 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">

body<!--   w w  w  .ja  v  a2 s  .co  m-->
{
   margin:0;
}
header
{
   display: block;
   min-width: 100%;
   height: 100px;
   background-color: #34495e;
   border-top: 5px solid #1abc9c;
}


      </style> 
 </head> 
 <body> 
  <div id="content"> 
   <header> 
    <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> 
   </header> 
  </div>  
 </body>
</html>

Related Tutorials