HTML CSS examples for CSS Layout:Width
Set div width to 100% and fix it at that width
<html> <head></head> <body style="width:100%;"> <div id="wideDiv" style="width:100%;background-color:lemonchiffon;height:20px;position:static;"> this is a div </div> <!--from w ww . j a v a 2 s . co m--> </body> </html>