HOWTO: Develop printer-friendly pages using CSS

The easiest way to provide Print functionality for your web-pages and removing the unwanted portions is by building the design of the page using CSS. The trick is to just set the DISPLAY property for a class to the value none and set the value of the media attribute of the link tag to print.

Example -
.navStuff

{

DISPLAY: none
}

<link rel="stylesheet" media="print" type="text/css" href="print.css">
4guys... has an interesting article on this

Comments

Popular posts from this blog

Datawrapper Makes Data Beautiful & Insightful

GitHub Copilot Q&A - 1

This Week I Learned - Week #3 2025