Reply to Print CSS Not Loading

Your name:

Reply:


Posted by william.oram on 09/20/07 16:18

I have two CSS files for print and screen. In screen.css:

..screen
{
font-weight:bold;
font-size:12px;
}

..print
{
visibility:hidden;
}

In the HTML:

<html>
<head>
<link rel="stylesheet" type="text/css" media="print" href="print.css" /
>
<link rel="stylesheet" type="text/css" media="screen"
href="screen.css" />
</head>
<body>
<font class="screen">Text A</font><br><font class="print">Text B</
font>

[etc.]

In print.css, the parameters are swapped. In other words, Text B will
show on the printed page, but not on screen, and vice-versa for Text
A.

But as it stands now, it's not quite working. On "screen," it looks
OK; hidden text is hidden, shown text is shown. When printed in
Firefox 2, though, the output looks no different from on "screen." I'm
stumped why this is, and so is everyone else I've shown this to. Any
ideas?

[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

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