html - height of div equals to "0" -



have simple html code:

<body>         <div id="container">             <div id="left">                 text here             </div>             <div id="right">                 , text here             </div>         </div>     </body> 

and styles:

div#left {     float: left;     background: #e2e2e2; }  div#right {     float: right;     background: #1469ab; } 

i want have height of div #container equal heights of it's content, 0. how implement behavior?

you should apply non-structural clearing container easyclearing http://www.positioniseverything.net/easyclearing.html

otherwise can specify height: auto; overflow: hidden container


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -