When I was developing this site I quickly realized that while the design looks fine, it prints horribly! Who would want a list of 200 tags included in their print. So I ended up making a fix to allow a printer friendly version of the page to be loaded and then printed. First of all, make a copy of your current CSS file and rename t to print.css
Now edit this CSS until you get your page to look like you want it to when it would be printed. The easiest way to do this is adding a tag to elements you want gone. Add display:none; to those id’s or classes. For example, the page you are viewing right now can be seen in a printer friendly version by clicking the printer button on the bottom of this post, which only appears when you are viewing the post page, not the homepage.
Once the page is set up you can create and set up the ability to have a “Click for a printer friendly version” by adding this bit of code to your header!
<?php
if( isset($_GET['print']) ) { ?>
<link href=”css/print.css” rel=”stylesheet” type=”text/css” />
<?php
} else {
?>
<link href=”css/stylesheet.css” rel=”stylesheet” type=”text/css” />
<?php
}
?>
This bit o code will replace your existing <link> that calls your current CSS file. The print.css is the file you just create and worked on and the stylesheet.css is your normal stylesheet you use for regular web viewing.
Now on your page simply add a link that goes to “?print” and you will see a printr friendly version! Your link should look like this, or could include animage instead of text:
<a href=”?print”>Printer Friendly version</a>
Now if you really want, you could add a bit of javascript to automatically open the print dialog, but I personally do not care for that. For a fully functional example click the printer friendly button at the bottom of this post!
Please note that if you simply want to create a printer friendly version of your site then make sure this exists where you declare your primary stylesheet.
<link href=”css/print.css” rel=”stylesheet” type=”text/css” media=”print” />
The steps mentioned here are simply to give you the ability to “view” and print a printer friendly version of your web page, as seen on many news article web sites.








well, hi admin adn people nice forum indeed. how’s life? hope it’s introduce branch