Browse Source

enable backgrounds images when printing to pdf (closes #271)

embed
Hakim El Hattab 12 years ago
parent
commit
6b0fff3512
  1. 7
      css/print/pdf.css

7
css/print/pdf.css

@ -10,6 +10,7 @@
background. This prevents elements from extending background. This prevents elements from extending
beyond the edge of the printed page, and prevents beyond the edge of the printed page, and prevents
unnecessary background images from printing */ unnecessary background images from printing */
* { * {
-webkit-print-color-adjust: exact; -webkit-print-color-adjust: exact;
} }
@ -19,16 +20,14 @@ body {
width: auto; width: auto;
height: auto; height: auto;
border: 0; border: 0;
margin: 0 5%;
padding: 0; padding: 0;
float: none !important; float: none !important;
overflow: visible; overflow: visible;
background-image: none !important;
} }
html { html {
width: auto; width: 100%;
height: auto; height: 100%;
overflow: visible; overflow: visible;
} }

Loading…
Cancel
Save