More information about the Underscore mailing list

[_] Pagebreaks in printed webpage

Owen Curtis-Quick owen at supercake.co.uk
Fri Feb 8 17:20:51 GMT 2013

On 7 Feb 2013, at 14:53, Martin Moore wrote:

> Today's ]_] hair-puller....
> 
> I need to be able to print some content from a page with page breaks at
> certain points. 
> 
> Seems simple enough, but can I get it to work ?!*&! No...
> 
> Needs to work on IE8+, Firefox. Safari would be nice.
> 
> My test code is at  http://pastebin.com/Yd4g29Xk
> 
> What do I need to do?


Code is good, that's what I've used before. It works in Chrome, Safari, Firefox on Mac. I didn't your demo in IE though.

I found that 'page-break-after' is more unreliable than 'page-break-before' but that's what you're using already.