Code: Select all
<div><div style="font-size:2em;font-weight:bold;margin:.67em auto;">Content</div></div>Where does this strange behavior come from? I've searched and searched, and I've not found one iota of information from the CSS2.1 spec, the Mozilla bug database, or the web!
This is really annoying because when I emulate tables with CSS, if I use margin-top and margin-bottom, they magically disappear for the non-floated one and magically appear for the floated one. So, I end up having to set both margins to 0 and making the division appear elsewhere. Why doesn't the CSS spec document this (or if it does, where?)