Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-14-2011, 02:45 AM #1
- Join Date
- Oct 2011
- Thanked 0 Times in 0 Posts
Prevent DIV from being split when printing
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?
11-14-2011, 04:58 AM #2
- Join Date
- Nov 2010
- Thanked 248 Times in 248 Posts