Get a css box to extend the entire width of the browser window - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Parent Container

Description

Get a css box to extend the entire width of the browser window

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
body {<!--   ww w.  j a va  2s . c o  m-->
   margin:0;
   padding:0;
}

#strip {
   background:Chartreuse;
   padding:6px;
}
</style> 
 </head> 
 <body> 
  <div id="strip">
    This is a nav strip 
  </div>  
 </body>
</html>

Related Tutorials