css float - floating div not coming in inner div -


whenever div floated left or right, overlows container div. div fits container div if float property removed. how come being occured? please tell me. please refer jsfiddle @ http://jsfiddle.net/ztjzs/. foollowing code :-

<div class="main"> <div class="left-content">     example content<br />     example content<br />     example content<br />   </div>  </div> 

the css code can found in fiddle... in advance.

that way works floating items - floating content "does not count" parent item's height. work around it, have choose of options:


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -