The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Print Style: How to prevent an image from spanning a page break?
Is there some CSS that prevents div’s or img’s from spanning the page break when printing?
The CSS property “page-break-inside” only work in Opera.
To put more info. I have have several big images in an unordered list, and images are getting split at the page break.
Note: My list-items are displayed block and I’ve been putting the css on them, not the image itself
I don’t know if you still need an answer to this, but I found one that works for me here: [http://stackoverflow.com/questions/2649169/print-styles-how-to-ensure-image-doesnt-span-a-page-break](http://stackoverflow.com/questions/2649169/print-styles-how-to-ensure-image-doesnt-span-a-page-break “http://stackoverflow.com/questions/2649169/print-styles-how-to-ensure-image-doesnt-span-a-page-break”)