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

Maven Crash Course - Learn Power Query, Power Pivot & DAX in 15 Minutes

"Data Prep & Exploratory Data Analysis" course by Maven Analytics

Oracle Cloud Infrastructure 2024 Generative AI Professional Course & Certification Exam (1Z0-1127-24)