/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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;}
URL: http://htmlcsstutorials.blogspot.com/2009/07/float-bug-fix-in-div-to-expand.html