An alternative to "page-break-inside"? Program page-breaks.

Discussion in 'CSS' started by alfgeorg, Mar 1, 2008.

  1. #1
    In CSS you can set page-breaks before and after a DIV. There is also the possibility to set page-breaks-inside: avoid. This is not working in most browsers. Are there any suggestions to avoide page-breaks inside a DIV?
    If there is not room enough for a DIV it should be moved to the next page.
    So I need to programmatically set page-breaks at the best places at the dynamic pages. (Using php and JavaScript).

    Any suggestions to a solution?
     
    alfgeorg, Mar 1, 2008 IP