Reply to Re: Printing a page with no links printed

Your name:

Reply:


Posted by Jukka K. Korpela on 11/05/05 17:19

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;}
}


--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

[Back to original 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

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