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
Post a Comment