Parent div height breaks

CSS layout rules are complicated, and are designed to avoid difficult or impossible layout calculations rather than be logical and obvious to users.

According to 10.6.3 of the CSS 2.1 spec ("Block-level non-replaced elements in normal flow when ‘overflow’ computes to ‘visible’”):

"Only children in the normal flow are taken into account (i.e., floating boxes and absolutely positioned boxes are ignored… )”

(Freeway’s display is incorrect in this situation.)

There are different rules for absolute elements (layers).

If you set “overflow” to be “hidden” instead of “visible”, or use a layer parent, the height of the floating child will be taken into account.

Jeremy


freewaytalk mailing list
email@hidden
Update your subscriptions at: