SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist N9ne's Avatar
    Join Date
    Aug 2002
    Location
    UK
    Posts
    596
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Page Breaks (Printing) (page-break-inside) - Compatibility?

    Hello all,

    I am looking for a solution to the problem of printable pages and breaking block elements across pages.

    I have read that the property 'page-break-inside: avoid' is valid CSS2 but I can't seem to get it to work in FF2.0! Haven't even tried IE yet. I want IE6+, FF1+ compatibility.

    Any suggestions?

    NB. a server-side solution is not possible. I have a variable number of block elements displaying (according to a DB query) and those of varying length.

    Thanks,
    N9ne

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,116
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    page-break-after seems to have surprisingly good support:
    http://www.htmlref.com/reference/app...page-break.htm

  3. #3
    SitePoint Evangelist N9ne's Avatar
    Join Date
    Aug 2002
    Location
    UK
    Posts
    596
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Indeed they do, but unfortunately they don't come in handy to me.

    I have a series of <div> elements displayed on a page. The number varies. The size varies. I just don't want one to break over a page when printing, but unfortunately it looks like there's no solution there as page-break-inside isn't supported anywhere!


Bookmarks

Posting Permissions

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