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

Posted by Chaddy2222 on 07/16/06 13:47

Chris wrote:
> I want to have a printer friendly page. My code is all css based so changing
> the media type to 'print' in the style definition does what I want. So I
> would like JS that changes:
>
> <link rel="stylesheet" href="Footer.css" media="screen" />
>
> to
>
> <link rel="stylesheet" href="Footer.css" media="print" />
>
> Regards
Ok.
For starters, you neeed to link a different stylesheet to the document
for printing. You will still want to ordinary screen stylesheet to be
there for visual presentation.
But, for printing, you will want to get rid of the stuff you don't
need, navigation etc etc. So just create a different sheet for that.
You could also do the same for PDA and Mobile devices.
I hope that helps.
--
Regards Chad. http://freewebdesign.cjb.cc

 

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

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