Set div width to 100% and fix it at that width - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Width

Description

Set div width to 100% and fix it at that width

Demo Code

ResultView the demo in separate window

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

Related Tutorials