Given the HTML fragment in content.html, with default styling for div.figure > img
causes the image to break to the next page, since the available space is not sufficient:
Thus, I used
in order to float it to the top of the page. I expected, that the image, instead of being broken down to the second page, would float to the top of the first page. The result, however, is that it floats to the top of the second page (see second screenshot below). This is not helpful because it often de-associates the text that is about the image from the image, neither is it the intuitive behaviour of using float I think. Taking something out of the flow, for me would mean that the available space on the page on which the image is anchored is not relevant anylonger for the decision to break the floated element to the next page. Instead we would see the other elements that are not floated moving further down.
Have I done anything wrong with the CSS or is there any way to achieve the behaviour that I would like to achieve?
causes the image to break to the next page, since the available space is not sufficient:
Thus, I used
div.figure {
float: top;
}
in order to float it to the top of the page. I expected, that the image, instead of being broken down to the second page, would float to the top of the first page. The result, however, is that it floats to the top of the second page (see second screenshot below). This is not helpful because it often de-associates the text that is about the image from the image, neither is it the intuitive behaviour of using float I think. Taking something out of the flow, for me would mean that the available space on the page on which the image is anchored is not relevant anylonger for the decision to break the floated element to the next page. Instead we would see the other elements that are not floated moving further down.
Have I done anything wrong with the CSS or is there any way to achieve the behaviour that I would like to achieve?