pstein Posted June 11, 2022 Share Posted June 11, 2022 (edited) Assume I want to print a (long) web page into a pdf file. The web page contains <table> elements and <iframe> elements. When a <table> or a <iframe> element does not fit on the remaining part of the current pdf page then the WHOLE element is shifted resp. moved to the next pdf page. How can I avoid this? If <table> or the <iframe> element does not fit on the remaining part of the current pdf page then it should be cut somewhere in the mid and the remaining lower part printed into the next pdf page. How can I achieve this (with a CSS attribute)? Edited June 11, 2022 by pstein Link to comment Share on other sites More sharing options...
Ingolme Posted June 11, 2022 Share Posted June 11, 2022 For tables the break-inside property should do that: https://www.w3schools.com/cssref/pr_break-inside.asp It might also work on iframes but I haven't tested. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now