Forum Bugs

Parents of floats do not have the correct height

<style type="text/css">
div { background: red; }
span { float: left; }

<span>There should be no red</span>


Prince will incorrectly make the div tall enough to contain one line box, even though it should have 0 height (no matter how tall you make the contents of the float).

If you add this rule:
div { height: 0; }
The div will become 1px high (as seen in Adobe reader 7.0).

Both of these mean that margin collapsing around floats is all wrong, and strange gaps appear above the content that follows it. Tested in 6.0r1 on Windows XP.
Thanks, I've added this issue to the roadmap and we will try and fix it for the next maintenance release.
This bug should be fixed now in Prince 6.0 rev 2. Thanks for reporting the issue! :)