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

http://jsfiddle.net/55ruh/10/

float causes element out of flow of document.

on parent element:

zoom: 1; /* ie fix */ overflow: hidden; 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -