Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2011
    Posts
    12
    Thanks
    1
    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?

  • #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •