Print styles: How to ensure image doesn't span a page break
Posted
by notJim
on Stack Overflow
See other posts from Stack Overflow
or by notJim
Published on 2010-04-15T21:40:52Z
Indexed on
2010/04/15
21:43 UTC
Read the original article
Hit count: 236
This is a problem I've had a few times, and I'm not sure how to deal with it. When writing a print stylesheet, is there a way to ensure that an image is always only on a single page. An example of the behavior I'm seeing is below:
Page 1 | |
| (text text text) |
| (text text text) |
| ________________ |
| | Top of image | |
|____________________|
------page break------
____________________
Page 2 | | Rest of image | |
| |________________| |
| … |
What I'd like
Page 1 | |
| (text text text) |
| (text text text) |
| |
| |
|____________________|
------page break------
____________________
| ________________ |
| | Full image | |
| | | |
| |________________| |
| … |
All those times I bitching about floats in LaTeX, and here I am asking for the same functionality... Can this be done? I'm not necessarily concerned about it working in all browsers, since this is often just a one-off document I'm writing to be turned into a PDF.
© Stack Overflow or respective owner