Using CSS and/or jQuery for Printed Pages with Page Breaks
I have a dynamically generated html page which is designed to be printed. I would like to create page breaks based upon div sections - where any given div - if it DOES NOT fully fit on the page, insert a page break before it. In theory, anywhere from a single div, up to perhaps 10, may fit on a single printed page, so I am thinking I will need to use jQuery to to the insertions after the page is loaded. If this were a desktop application, I would approach it something like this: Measure the page width and height (using printer object of some sort). Measure each div height - and subtract that