title: How to print a PHP page without browser generated page numbers, URL, etc.?
body: <p>I have a PHP page that I need to print. I managed to remove unwanted elements from printing with a  print stylesheet (print.css) below. However it does not remove browser generated header, page numbers, URL and date. I am using bootstrap framework. bootstrap.min.css does not have any '@media print' sort of thing. Need some better CSS ideas to achieve this. Thank you.</p>
  
  <pre><code>    /* Remove unwanted elements */
      /* Assign class="noprint" in the HTML. Header and navigation (&lt;div id="header"&gt; and &lt;div id="nav"&gt;) */
  
      #header, #nav, .noprint
      {
      display: none;
      }
  
     /* Ensure the content spans the full width */
     #container, #container2, #content
      {
      width: 100%; margin: 0; float: none;
      }
  
      /* Change text colour to black (useful for light text on a dark background) */
      .lighttext
      {
      color: #000 
      }
  
      /* Remove links */
      a:link, a:visited, .navbar-link
      {
      display: none;
      }
  </code></pre>