Forum How do I...?

Are page floats supported

hamishwillee
As described here: http://www.w3.org/TR/css3-gcpm/#page-floats

If an image can't fit on the page Prince already seems to push it to the next page - although this might be the effect of a surrounding div. I could also get this sort thing using
.thumbinner {
   page-break-inside:avoid;
}

(where thumbinner is a div wrapping my thumbnail and its caption)

However it would be nice if for printing an image that is too big might be pushed up as far as it needs on the page to fit, and the text that would otherwise be before it be pushed down. Is this supported? (initial tests say no, but want to check, because my CSS could be "bad"
mikeday
You can try "float: prince-top-if-necessary", which should leave the image where it is if it will fit, otherwise float it to the top of the page.