You are here: Re: Change media of stylesheet « HTML « IT news, forums, messages
Re: Change media of stylesheet

Posted by Bernhard Sturm on 07/16/06 14:13

Chris wrote:
> It doesn't seem to print properly when I have it in screen mode. Also I just
> think people get it more when they press a button and the screen goes into a
> printer friendly page. It's like they can be sure of what they are getting
> before they press print. Maybe it's just me but the amount of times I have
> seen annoyed users who go to print and don't get what they want.

there are different approaches to this problem
a) rely on the media-type 'print' and design a separate design for this
media-type. I never had any problems doing this (at least in the most
common UAs, such as FF, Safari, IE). most UAs offer the possibility of a
'Print Preview', let the user use this function as it is based on the
styles defined under your @media print {}.

b) provide a print-function on your site. this is pretty easy as you can
open your content based on a separate designed style-sheet (based on
your @media type print {} styles).

with both scenarios no JS-switch is necessary. I prefer approach a) as
this offers the most standards-compliant solution, and you don't have to
think of the users UA or other things, that are not in your control.

bernhard

--
www.daszeichen.ch
remove nixspam to reply

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация