If you have a parent window with display block. Any children within that element that are being floated will be displayed with the parent window "collapsed".
For example:
<div>
<p style="float: left;">Stuff</p>
<p style="float: right;">More stuff</p>
</div>
Will render with both <p>
outside of <div>
. However, if you change <div>
to display: inline-block... it will not "collapse". Why...what's going on behind the scenes here that I'm not understanding?