|
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
Navigation:
[Reply to this message]
|