Jake,
Ok, I've been playing around for the last 2 hours and can't get it to work.
For example, in the following "header" both displays on the screen and
prints.  What am I doing wrong?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 //EN
http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
        <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
        <STYLE type="text/css">
        @media screen {
                #Header {
                        position: fixed;
                        width: 100%;
                        height: auto;
                        font-size: 20pt;
                        font-weight: bold;
                }
        }
        @media print {
                #Header {visibility: hidden;}
        }
        </STYLE>
        <title>Test Document</title>
</head>

<body>
        <div id="Header">Header</div>
        <p>Testing</p>
</body>
</html> 

-----Original Message-----
From: Jake Churchill [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 19, 2008 5:39 PM
To: CF-Talk
Subject: RE: CSS Question

media="print" in your link tag where you import the stylesheet will
accomplish this.  

media="screen" will be screen specific and media="all" is for both.  A lack
of this attribute will default to all.

There's more too it than that.  Here's a good resource for you:
http://www.w3.org/TR/REC-CSS2/media.html 

_____ 

Jake Churchill
Team Leader
11204 Davenport, Ste. 100
Omaha, NE  68154
http://www.cfwebtools.com
402-408-3733 x103 

-----Original Message-----
From: Andy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 19, 2008 5:34 PM
To: CF-Talk
Subject: OT: CSS Question

I understand how to make fields invisible, but is there a way to have a
field display on the screen, but become invisible when printed?  For
example, can I set one stylesheet for Display and another for printing?
 
Andy







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299387
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to