Firefox printing only 1st page

34,253

Solution 1

The long-standing bug with printing absolutely-positioned elements was fixed in Firefox 3.

The issues with missing pages are tracked in bug 521204 (look through the "depends on" list). Do you have frames or long tables on the page you're trying to print?

And yes, printing in Firefox is under-owned, sorry you have to deal with it...

Solution 2

I just found out, that from an element with

display:inline-block; 

only the first page is printed and everthing else is hidden. setting this to

display:block;

was the solution in my case.

Solution 3

I was having the same issue. Turns out, the root tag had display: flex on it. After changing this to display: block, the rest of the content was displayed. I'd recommend going up your DOM tree and checking every display attribute.

Solution 4

If you don't want to go through all of your code, this is the only thing I've found that works for me without messing up all of my other CSS:

@media print {
  body {
    overflow: visible !important;
  }
}

Solution 5

I tried a dozen fixes for this and, in the end, all I needed was:

@media print {
  body {
    display: block;
  }
}
Share:
34,253
ScottE
Author by

ScottE

I'm a full-stack .net developer, but mostly interested in front end development and optimization using javascript, css and html5.

Updated on March 11, 2021

Comments

  • ScottE
    ScottE over 3 years

    I'm working on print friendly css for a website. It previews/prints perfectly in IE, but Firefox (version 3.6) only previews/prints the 1st page.

    Is anyone aware of anything that would generally cause this? The markup is fairly complicated, so I'm not sure where to start!

    Thanks.

    Edit

    This solution only made things worse.

    https://support.mozilla.com/ga-IE/questions/667285#answer-115916

    Looks like printing just sucks in FF. Client won't like to hear that - hopefully they don't use FF!