www.ntnu.no *
INFOWEB >  about infoweb >  info  > Printer-friendly pages
Verktøy
Du kan legge til kommentarer
Eller sende denne artikkelen
Les artikler skrevet av bjornarg
Brukervurdering
Hvor mye hjelp var det i denne artikkelen?
Mye Noe Lite
Forhåndsvisning
Du trenger ikke en 'utskriftsvennlig side' for å skrive ut denne siden. Forklaring
Innhold

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.

Fotnoter

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


Språk: en flag_no Kommentarer: 0 Aid: 239 Brukervurdering:
 
 
Sist oppdatert: 2007-06-26 Forfatter: bjornarg Lest: 5064 ganger