I am working on developing a website and need to work on the print view. Typically when I have layout issues I use Chrome's Element Inspector. However this does not exist in print preview mode.
Is there a Chrome plugin or some other way to change your viewing medium within chrome itself, to view a page as a printer would? I suppose it doesn't have a be a Chrome specific solution, but that is my primary browser so it would be nice to have an in-browser solution.
Right now I'm focused just on the print preview medium, but it would be ideal to be able to change to any of the supported media types (i.e. all/braille/embossed/handheld/print/projection/screen/speech/tty/tv).
As of Chrome 48 (and perhaps a few versions earlier), the function seems to have moved yet again:
The first few steps are unchanged:
Press F12 to bring up the developer tools
Press ESC to open the console
According to the previous answers, the setting could then be found under the "Emulation" tab. As shown in the images below, it has now been moved to the "Rendering" tab, which can be brought up by clicking on the three dots to the left of the "Console" tab.
Note: This answer covers several versions of Chrome, scroll to see v52, v48, v46, v43 and v42 each with their updated changes.
Chrome v52+:
Chrome v48+ (Thanks Alex for noticing):
Chrome v46+:
Chrome v43+:
Chrome v42:
Chrome v67 (mac):
...
on the righthand side, and choose: More Tools >> RenderingImages of the above description for Chrome v67 on a mac:
Where to find the Rendering tab: Click the
...
on the righthand side, and choose: More Tools >> RenderingHow to get the "screen" view to print: When the Rendering window shows up at the bottom of the screen, Emulate CSS Media section and choose: "Screen" from the dropdown.
Hope it helps.
Since Chrome 32 you have the
CSS media
option in theScreen
section of the drawerEmulation
tab.Just enable it, select
print
as the target media type, and - behold - your page is rendered [almost] the way it will be printed.Use Esc to bring up the drawer if it's not visible.
If you are debugging your CSS using Print As PDF in Google Chrome and your CSS element background colors are not showing, then make sure the 'Background graphics' checkbox is ticked. I spent almost 30 minutes debugging my CSS and wondering what is causing my CSS background being ignored.
Under Chrome v51 on a Mac, I found the rendering settings by clicking in the upper right corner, choosing More tools > Rendering settings and checking the Emulate media button in the options offered at the bottom of the window.
Thank you to all the other posters that led me to this, and credit to those that provided the answer without the images.