Use a browser to display a web page. Print style sheet.

Many web pages use a print style sheet to format things better for printing. My question is: is it possible to get the browser to display the page using the print stylesheet without printing it?

+4
source share
2 answers

usually print css has a print type for printing. just delete the media definition and use it instead of the main stylesheet

<link rel="stylesheet" type="text/css" media="print" href="print.css" /> 

change to

 <link rel="stylesheet" type="text/css" media="all" href="print.css" /> 
+2
source

In Chrome (version 48), you can force the browser to display the webpage's print stylesheet using Chrome DevTools by going to Advanced Tools > Rendering Settings

Open Chrome DevTools Render Settings

then select the Emulate for printing check box

Emulate print media checkbox in Chrome DevTools

+11
source

All Articles