You are here: Re: Printing a page with no links printed « HTML « IT news, forums, messages
Re: Printing a page with no links printed

Posted by Ed Jay on 11/05/05 18:40

"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote:

>brucie <shit@usenetshit.info> wrote:
>
>>> I recall seeing where using CSS one can print a browser page without
>>> printing the links. How is it done?
>
>I'm not sure we know what the question is really about. Dropping all links
>sounds strange. Maybe the idea is to print link texts as normal text? That
>would be a different issue. Or maybe the OP has a "navigational menu" that
>he wants to omit from printed copies. That's quite sensible (assuming you
>have such a menu in the first place), but it may involve more that just
>omitting links, depending on they menu has been written.
>
>> /* normal css for links */
>> a{background:red;color:blue;}
>
>There's nothing normal about that. It's an example, yes - but a bad one.
>
>> /* print specific css for links */
>> @media print{
>> a{display:none;}
>> }
>
>That would do too much, even assuming that the OP really wants to remove all
>links (with their link texts or images). It would also remove any
><a name="...">...</a> element.
>
>Better:
>
>@media print{
>:link, :visited {display:none;}
>}
Thanks much. To answer your concern, my purpose is to print out a results
report without showing the menu.

--
Ed Jay (remove M to respond by email)

 

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

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