Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / IE sometimes ignores page-break-before: always;

IE sometimes ignores page-break-before: always;

Views: 2,182

Results 1 to 3 of 3
29 Aug 2012, 7:31 PM
#1
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

IE sometimes ignores page-break-before: always;

I installed the Super Orders for 1.5. When I use Batch Form Print to print out multiple invoices IE is ignoring the page-break on some of the invoices and is printing multiples on the same page. The html that's being generated to create the page break is

<div style="page-break-before: always;"><span style="display: none;"> </span></div>

This works perfectly in Firefox and Chrome. Has anybody run into this before?

29 Aug 2012, 7:55 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,771
Plugin Contributions:
9

Re: IE sometimes ignores page-break-before: always;

Don't tell me, there's a possible problem with IE?!?:shocking:

You really didn't give enough info but, do any of these limitations apply to your situation?

Limitations

  • The page-break styles work with the following block elements: BLOCKQUOTE, BODY, CENTER, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, UL, XMP.
  • Only applicable to Cascading Style Sheets 2 specification
  • Do NOT try and use within a table - they won't work!
29 Aug 2012, 9:00 PM
#3
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

Re: IE sometimes ignores page-break-before: always;

Just to update the thread with my solution. I removed the styling on the span tag and it now works in all browsers. I'm not sure why that breaks the page break but I am sure I've had enough for one day.

If Microsoft ever drops IE the jack Daniels distillery will go out of business.:shocking: Thanks for the info dbltoe!