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 brucie on 11/05/05 08:39

In post <news:6e8om11q9phs6kemtuhktf9tin0khamp23@4ax.com>,
Ed Jay said:

> I recall seeing where using CSS one can print a browser page without
> printing the links. How is it done?

using print specific css eg:

css just for the screen:
<link rel="stylesheet" href="x.css" type="text/css" media="screen">

css just for the printer:
<link rel="stylesheet" href="y.css" type="text/css" media="print">

or css for the screen and printer:
<link rel="stylesheet" href="z.css" type="text/css" media="screen,print">

or using @media rules within css. e.g display blue on red links on screen
but not to display them when printed:

/* normal css for links */
a{background:red;color:blue;}

/* print specific css for links */
@media print{
a{display:none;}
}

supply a link to a "print version" of your page or warn the visitor that
what they see may not be what is printed. its really annoying when you
expect one thing to be printed but get something else.


--
l i t t l e v o i c e s

 

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

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