...

View Full Version : Prevent DIV from being split when printing



ohmitmedia
11-14-2011, 02:45 AM
I have a rental listing database that I developed, PHP/mySQL based. I need to create a printable version for the company to be able to print their complete rental listing that keeps each listing together, with no page breaks in the middle of a listing.

page-break-inside:avoid is suppose to work in Opera (I really don't need it to work for the general public, just so the company can print it in office.) But, I can't even get it to work in Opera.

I've tried applying the style to the container div for the rental listing, the sub-divs, as well as enclosing it with a table and applying the style to the table. This CSS code doesn't seem to even work in Opera anymore.


I was wondering if anyone had any other suggestions for how to collect the data from mySQL and display it in a list that has some page-break control to prevent the listings from being broken up?

DanInMa
11-14-2011, 04:58 AM
this might help you : http://davidwalsh.name/css-page-breaks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum