title: Drupal pop-up window for printing
body: <p>I have a Drupal website and I need to create a link to a different version of the same page that opens up in a new window but hides all the side bars, blocks and header and just shows the main content. This is so people can print the main content of the page without all the extra bits. </p>
  
  <p>I know I can add in a link to a print version like <code>&lt;a href="print version of page" target="_blank"&gt;print version&lt;/a&gt;</code>. But then I want to add a new CSS class to the page which I could use to hide the extra bits. I am not sure how I can add the CSS class to the link/page. </p>
  
  <p>I guess I could also use Javascript but not sure about which method to use for this. </p>