www.ntnu.no *
INFOWEB >  about infoweb >  info  > Printer-friendly pages
Tasks
You may add comments
Or e-mail this article
Read articles written by bjornarg
User rating
How much did this article help you?
Much Some Little
Print preview
You do not need a 'printer-friendly page' to print this page. Here's why
Contents

Printer-friendly pages

Short explanation

When you find a site you'd like to print out, you may be used to look for printer-friendly pages. In Infoweb that's not necessary. By using css we've made sure that your browser only prints out what's important.

Conclusion: print out an Infoweb article, just make use of your standard print commands, and the browser will take care of the rest.

Technical explanation

Using CSS [1] it's possible to state which medium you want to define the appearance of.
This way, you can have different styles for different medias, e.g. you're viewing your web page from a browser and a tv-set:

kode #1: Two different stylesheets
   
   <link href="stilsett_vanlig.css" media="screen">
   <link href="stilsett_tv.css" media="tv">
   
   

By creating a specific style sheet with media="print", we are thus able to instruct the browser which elements we want it to print, and how we want them to look. This is a technique that works on the following browsers:

If you have any feedback, please send us a mail.

Footnotes

[1]: CSS: Cascading Style Sheets. A technology from w3c - who's also behind html.


Languages: en flag_no Comments: 0 Aid: 239 User rating:
 
 
Last updated: 2007-06-26 Author: bjornarg Read: 5070 times