Bootstrap: Printing in IE11 and Firefox is blank after page 1

Created on 29 Jun 2018  路  10Comments  路  Source: twbs/bootstrap

Printing in IE11 is broken after the first page, displaying no content.

Chrome:
chrome-1
chrome-2

IE11:
ie11-1
ie11-2

browser bug print v4

Most helpful comment

I'm having the same issue! It is caused by display: flex;

So you'll need to add d-print-block to all your flex elements, or add something like this in an @ print media selector:

  .row,
  .any-custom-class-that-uses-flex {
    display: block !important;
  }

All 10 comments

I came here to post the same issue, as our users reported not being able to print using IE. In addition to Internet Explorer, I also have this issue in Firefox 60 on Mac OSX: I can reproduce it on my end by trying to print https://getbootstrap.com/docs/4.1/getting-started/introduction/

I can confirm that this issue is also present in Firefox on Windows.

Will this be investigated soon?

I think this issue is linked to https://github.com/twbs/bootstrap/issues/23489.~~
setting display: block; for print css does not dix this in IE or Firefox.

Anyone?

I have the same problem. Reproducable with the bootstrap examples page.

@mdo Can this be looked into, pretty please?

This is still an issue. Can someone assist please?

I'm having the same issue! It is caused by display: flex;

So you'll need to add d-print-block to all your flex elements, or add something like this in an @ print media selector:

  .row,
  .any-custom-class-that-uses-flex {
    display: block !important;
  }

I'm having the same issue! It is caused by display: flex;

So you'll need to add d-print-block to all your flex elements, or add something like this in an @ print media selector:

  .row,
  .any-custom-class-that-uses-flex {
    display: block !important;
  }

Too bad that it breaks anything else inside the div...

This is a browser bug. Unfortunately there is no general way to solve. There are some workarounds, those are incompletely but may help for some cases.

Also please see:
https://bugzilla.mozilla.org/show_bug.cgi?id=939897

Sorry but closing this since we can't fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fohlsom picture fohlsom  路  3Comments

IamManchanda picture IamManchanda  路  3Comments

tiendq picture tiendq  路  3Comments

athimannil picture athimannil  路  3Comments

ghost picture ghost  路  3Comments