Return to Snippet

Revision: 15993
at July 22, 2009 13:03 by webdevelopertut


Initial Code
HTML:
<div class="container">
<div class="inner_div">
blablabla <br> blablabla <br> blablabla<br>
</div>
</div>

CSS:
.container{width:300px;background:red;}
.inner_div{float:left;width:200px;font:12px arial;}

Just add
.container{overflow:hidden;}

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

Initial Description


Initial Title
Float bug fix in div to expand

Initial Tags
css, browser

Initial Language
CSS