HTML CSS examples for CSS Widget:Header
100% Width of header and footer with center content
<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>