1

Possible Duplicate:
page-break-inside:avoid equivalent for Firefox and/or IE

Referring to this question CSS Printing: Avoiding cut-in-half DIVs between pages?

page-break-inside: avoid;

This property is not working in Firefox. What is its equivalent for Firefox?

Community
  • 1
  • 1
Muhammad Arslan Jamshaid
  • 1,077
  • 8
  • 27
  • 48
  • `page-break-inside` is a specific CSS2 tag for Opera browser... you might need much more than Firefox. You have no control on how the user prints as that's hardware and from a webpage, you can't access hardware settings, you will need to use a 3rd party component to handle this. – balexandre Sep 29 '12 at 06:33
  • 1
    Maybe try `page-break-before : always`? (Yes, this might put an unnecessary break, but perhaps that's better than a page break in the middle for your specific case.) – nnnnnn Sep 29 '12 at 06:38
  • @Programer http://reference.sitepoint.com/css/page-break-inside only Opera and IE8 or above, and even that it's buggy. – balexandre Sep 29 '12 at 06:46
  • @nnnnnn Thanks , page-break-before:always it works – Muhammad Arslan Jamshaid Sep 29 '12 at 06:51
  • @nnnnnn it's fine but major problem is this is printing 1 div per page :( – Muhammad Arslan Jamshaid Sep 29 '12 at 08:40
  • Dup? http://stackoverflow.com/questions/3401229/page-break-insideavoid-equivalent-for-firefox-and-or-ie – Sumo Oct 19 '12 at 03:34

0 Answers0