Prev | Current Page 503 | Next

Kevin Potts

"Web Design and Marketing Solutions for Business Websites"

There are different ways of
doing this, but the most common way is through the tag. For instance, this single
line of code might be used to reference the CSS file for the browser display:
media="screen,projection" />
There are several important attributes. The rel and type attributes tell the browser that
the link is for a CSS file, and the media attribute dictates where the style sheet should be
applied. In this example, the CSS file is intended for screens (basically traditional browser
windows) and projection environments (which is the term for browsers that operate in
kiosk mode8). Linking a dedicated print style sheet is exactly the same, except the media
attribute changes.
media="print" />
The implementation does not get much more complicated than that. The harder work
comes in actually developing and maintaining the additional style sheet, which includes
choosing the page elements that stay and the ones that need to be hidden from the
printer.
What stays, what goes
At some point, you have printed a web page.


Pages:
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515