printer friendly page

C

Cal

I was told to get a printer friendly page I should create
a .css page. Do I create an embedded or external
Cascading Style Sheet? Then do I just link to it and will
the text appear on the linked page or must I copy the
text to the linked .css page?

Cal
 
J

Jim Buyens

-----Original Message-----
I was told to get a printer friendly page I should create
a .css page. Do I create an embedded or external
Cascading Style Sheet? Then do I just link to it and will
the text appear on the linked page or must I copy the
text to the linked .css page?

For a further explanation, you should really ask whoever
told you this in the first place.

I suspect, however, that this helpful person wanted you to
create two different .css files, one for normal display
and one for printing. Then, you would rig up some
JavaScript, ASP, or ASP.NET code to invoke the style sheet
the visitor wanted.

Getting this to work can be tricky, but when it does work,
it can display the same information in two different
foramts (i.e. browser and print).

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

jon spivey

Hi,
an external stylesheet is always easier. You might have
<link rel="stylesheet" type="text/css" href="screen.css">
<link rel="stylesheet" type="text/css" href="print.css" media="print">
Not sure what Jim's talking about - CSS has nothing to do with javascript
ASP or ASP.net
 
J

Jim Buyens

jon spivey said:
Hi,
an external stylesheet is always easier. You might have
<link rel="stylesheet" type="text/css" href="screen.css">
<link rel="stylesheet" type="text/css" href="print.css" media="print">
Not sure what Jim's talking about - CSS has nothing to do with javascript
ASP or ASP.net

If you want to display the print format in the browser (i.e. "Display
a printer-friendly version of this page."), and if you don't want to
maintain the same information in two separate pages, they you would
have to write some ASP or JavaScript code to select the .css file you
want.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

jon spivey

Ah, I see what you mean now. But the point of using a print style sheet is
that you don't need to put a "printer friendly page" link on your pages. The
user hits his print button (or a "print this page" link/button) and the page
prints the way you want it to - which could be (and almost certainly will
be) very different to how it displays on screen. There's no need for
asp/javascript or to maintain 2 seperate versions of a page. Only drawback
is print stylesheets are not supported on NN4, but they'll work on just
about anything else
 
Top