-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page break before image #117
Comments
After some debugging I've managed to modify
|
@danfickle suggested trying Unfortunately -fs-page-break-min-height doesn't work on images, I tried:
|
Discovered that there is no way to specify that inline-block elements (including img elements by default) can split between pages.
Hi @Jugen Thanks for persevering with this issue. I wrote some tests around this problem and discovered that the generic problem is that there is no way to specify that inline-block elements can split between pages. A possible workaround is to use img {
display: block;
} P.S Unlike my previous suggestion I have tested that this works. |
@danfickle Thank you very much for the time you've put into this issue, I really appreciate it ! I'm not a CSS or HTML expert but I think that using |
Currently if there isn't enough space at the bottom of a page for an image then a page break is inserted and the image is placed on the next page. This is great and probably the expected behavior most of the time. :-)
Is there a way though from preventing this from happening ?
In certain cases I would like the image to be placed even if there isn't enough space, with the remaining part of the image either dropped, or to overflow onto the next page.
If there isn't already a way to do this could the css style
overflow: hidden/visible
maybe be extended to be able to accommodate this ?The text was updated successfully, but these errors were encountered: