I have a problem with div floating ,
I have used two DIVs that float left , but if div 2 has large text , it loads under div one , how can I prevent this , I want two divs load inline . I have used inline-block but not worked .
<div style="width: 100%;overflow:hidden;">
<div style="float: left;width:">Left Stuff</div>
<div style="float: left;margin-left:10px;"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
<br style="clear: left;" />
</div>
thanks
Will http://jsfiddle.net/pS6Gg/4/ or http://jsfiddle.net/pS6Gg/5/ do it?
The first possibility lets the second div flow around the first,
and the second creates a column effect by defining the first div’s width and and giving the parent div a defined height for the children to fill.