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