Printer friendly page

Usually we see links in web pages to show another version of page that is printer friendly. But, we can create a page such that it will display correctly in browser, but while printing, we can decide which all content to be printed. This is achieved with CSS. The method is simple. You create a style sheet such that the content that you do not want to appear in print will be given the attribute 'display:none'. This style sheet is add to you page with an additional attribute media="print". So, when the user choose to print the page, this style sheet will be considered and the content that are given the display:none attribute will be hidden. http://envisionic.com/webtips/user_experience/printer_friendly.php

Comments

Popular posts from this blog

Hide notification content in Android lock screen for Messages, email, whatsapp and selected apps.