Click to See Complete Forum and Search --> : DOM, page breaks, and printing.


sneakyimp
08-05-2004, 07:18 PM
ok....

my client has asked for a printable version of a product list. no problem. i have one formatted. HOWEVER, we'd like to avoid page breaks in certain spots if possible.

I found this thread here:

thread (http://www.webdeveloper.com/forum/showthread.php?s=&threadid=30214&highlight=page+break)

but it's from march and doesn't mention DOM or anything like that. I just spent 30 minutes cruising w3c.org and couldn't find any relevant info.

short of using PDF, is there any reliable way to control page layout?

ray326
08-06-2004, 12:34 AM
http://www.alistapart.com/articles/goingtoprint/

The CSS to do this is only going to be supported in modern browsers. I believe page-break-inside:avoid; is the style you're looking for.