100% Width of header and footer with center content - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Header

Description

100% Width of header and footer with center content

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <style type="text/css">
body { margin: 0; }
#header { width: 100%; background: red; }
#content { width: 900px; background: green; margin: 0 auto; }
#footer { width: 100%; background: blue; }

      </style> 
   </head> 
   <body> 
      <div id="header">
          Header Area 
      </div> 
      <div id="content">
          Content Area 
      </div> 
      <div id="footer">
          Footer Area 
      </div>  
   </body><!-- www  .j a v a  2 s.  c  om-->
</html>

Related Tutorials