Background printing issue with twitter bootstrap

I am using Twitter Bootstrap and trying to print a page with a background. I tried all the options in a web browser, but it does not work. If I do not enable twitter bootstrap, background printing works fine. (by the way, on this particular page I am not using anything related to TBS).

Is there anything I can do to make it work (kind of reset) without TBS exception?

+4
source share
1 answer

There is a "printmedia" section in the Bootstrap css file that sets the following css rule:

* { color: #000 !important; text-shadow: none !important; background: transparent !important; box-shadow: none !important; } 

As you can see, all backgrounds become transparent.

You need to override this in your custom stylesheet or modify it in the bootstrap.css file.

+15
source

All Articles