0

I'm looking for a easy way and css only solution to style my page before print.

  • I'm looking for chance color to black and white for text and image.

  • I'm also looking for a way to change the scale of image to printer doesn't consume só much paper.

If some one points me out the css tags and how to use them would be awesome.
Thanks in advance !

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
Alvaro Silvino
  • 9,441
  • 12
  • 52
  • 80

1 Answers1

1

You can do like this

@media print {
  body {
      font-size: 10pt;
      background-image: url(photo_with_white_background.jpg);
  }      
}

To manipulate images you can use filters

img {-webkit-filter: grayscale(100%); filter: grayscale(100%);}
img {-webkit-filter: invert(100%); filter: invert(100%);}

Src: https://stackoverflow.com/a/20933311/2827823

Community
  • 1
  • 1
Asons
  • 84,923
  • 12
  • 110
  • 165