Css float issue -
http://jsfiddle.net/55ruh/9/. red box doesn't bigger if enter text.
<div class="box" style="background: red"> <div class="lefty">text</div> <div class="righty">text</div> </div> .box { background: red; width: 229px; color: white; } .lefty { float: left; } .righty { float: right; }
float causes element out of flow of document.
on parent element:
zoom: 1; /* ie fix */ overflow: hidden;
Comments
Post a Comment