<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rocco Balsamo</title>
    <description>The latest articles on DEV Community by Rocco Balsamo (@theroccob).</description>
    <link>https://dev.to/theroccob</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F16073%2F5ee95127-fe5a-492c-afb9-8f3f9bb937f6.jpeg</url>
      <title>DEV Community: Rocco Balsamo</title>
      <link>https://dev.to/theroccob</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/theroccob"/>
    <language>en</language>
    <item>
      <title>Emulate Print Layout with Chrome DevTools</title>
      <dc:creator>Rocco Balsamo</dc:creator>
      <pubDate>Mon, 17 Apr 2017 00:06:57 +0000</pubDate>
      <link>https://dev.to/theroccob/emulate-print-layout-with-chrome-devtools</link>
      <guid>https://dev.to/theroccob/emulate-print-layout-with-chrome-devtools</guid>
      <description>&lt;p&gt;Ever want to make your website look good in print layout? A lot of sites do it well, but others fall flat and you're stuck with tons of nasty headers when you go to print. &lt;/p&gt;

&lt;p&gt;I know, I know, you're probably laughing at the thought of printing something, but I actually "print" stuff all the time when I want to save an article to PDF.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/"&gt;dev.to&lt;/a&gt; does a pretty good job of removing headers and footers in print mode, so you can try this directly on this article.&lt;/p&gt;

&lt;p&gt;Press &lt;code&gt;ctrl + shift + i&lt;/code&gt; (or &lt;code&gt;cmd + shift + i&lt;/code&gt; on Mac) to open up Chrome Developer Tools. Then select the shish kabob in the top right corner of the devtools window and select More Tools -&amp;gt; Rendering  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F3w9y5193b6po9r81iqd5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F3w9y5193b6po9r81iqd5.png" title="More Tools -&amp;gt; Rendering" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then scroll to the bottom and select "Emulate CSS Media" with "Print" in the pulldown.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fgsj8ef6itdcfk3h9iko2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fgsj8ef6itdcfk3h9iko2.png" title="Emulate CSS Media" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That changes the view of the page from this:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F97n2tbmm7jlw4ap5ml2r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F97n2tbmm7jlw4ap5ml2r.png" title="Without CSS Media Emulation" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To this:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F056iltqvat1r79kiy5hc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F056iltqvat1r79kiy5hc.png" title="With CSS Media Emulation" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Medium also does a good job at this. Check out this article: &lt;a href="https://medium.com/@theroccob/devtools-2017-a-free-course-on-google-chrome-developer-tools-43af9c4f8d5d" rel="noopener noreferrer"&gt;https://medium.com/@theroccob/devtools-2017-a-free-course-on-google-chrome-developer-tools-43af9c4f8d5d&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here it is without print emulation:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F2i82q2lmyo8prx6pmlu0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F2i82q2lmyo8prx6pmlu0.png" title="Without CSS Media Emulation" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With print emulation:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F7jws4x4k1zzjc4p9p83w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F7jws4x4k1zzjc4p9p83w.png" title="With CSS Media Emulation" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for reading! &lt;/p&gt;

&lt;p&gt;If you're interested in some free DevTools video tutorials, check out my free video course at &lt;a href="https://fogcitylearning.com" rel="noopener noreferrer"&gt;fogcitylearning.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>googlechrome</category>
      <category>devtools</category>
      <category>developertools</category>
      <category>css</category>
    </item>
  </channel>
</rss>
