Make a header full screen width - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Header

Description

Make a header full screen width

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">

#header{width:100%; background: blue;}
#headerContent{margin: 0 auto; width: 200px;}


      </style> 
 </head> <!--from  w w  w .ja  va 2s  .  c o  m-->
 <body> 
  <div id="header"> 
   <div id="headerContent">
     Header text 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials