Posted By

webdevelopertut on 07/22/09


Tagged

div css float browser bug


Versions (?)

Float bug fix in div to expand


 / Published in: CSS
 

URL: http://htmlcsstutorials.blogspot.com/2009/07/float-bug-fix-in-div-to-expand.html

  1. HTML:
  2. <div class="container">
  3. <div class="inner_div">
  4. blablabla <br> blablabla <br> blablabla<br>
  5. </div>
  6. </div>
  7.  
  8. CSS:
  9. .container{width:300px;background:red;}
  10. .inner_div{float:left;width:200px;font:12px arial;}
  11.  
  12. Just add
  13. .container{overflow:hidden;}

Report this snippet  

You need to login to post a comment.