Page Break Issue in IE

Just found a useful hack for IE 7 when dealing with page-breaks and I thought it might be useful to someone so here it it. The following page-break code worked fine in IE 6, but broke in IE 7: <p style=”page-break-before: always”></p> I found a post on a forum that said try putting this= <!–[if IE 7]><br style=”height:0; line-height:0″> in after the page-break code to fix it for IE 7. So the ending result was <p style=”page-break-before: always”><!–[if IE 7]><br style=”height:0; line-height:0″><![endif]–></p> which works in both IE 6 & IE 7

3 Responses to “Page Break Issue in IE”

  1. Rodrigo Says:

    Thank you. It worked great. No problems with Netscape 9 and Opera 9.

  2. Pierce Beckett Says:

    Thank you!

    This was a major flippin pain when pdf converting :)
    Tho i do wonder what sequence of hacking found this out lol

  3. Jerry Cote Says:

    Thanks much, works great!

Leave a Reply