Click to See Complete Forum and Search --> : Trouble printing form


stomlin
08-10-2004, 11:04 AM
I have a form that I created in Frontpage and I would like to have it printed. But I would like to have it printed in a text format, i.e. without the header graphics and etc. Is there an easy way to do this?

Thanks
Steven:confused:

iamlucky13
08-10-2004, 11:18 AM
The old way is to create a clone of the page but just leave out that stuff and create a link to it. A better way is to use an alternate style sheet, as discussed below.

A List Apart article (http://www.alistapart.com/articles/goingtoprint/)

If you only have experience in FrontPage, the article will involve some stuff you're probably not familiar with (CSS).

stomlin
08-10-2004, 11:21 AM
Okay, looking at the css information on the link you sent was helpful. Now where do I put that information? Does it go somewhere in the html itself??

iamlucky13
08-10-2004, 04:58 PM
You can put in the head of your html like this:
<html>
<head>
<title>Page Title</title>
</head>
<style type="text/css" media="print">
.noprint { display: none; }
</style>
</head>
rest of html...
Setting media to print tells the browser to only use that style when outputting to the printer. ".noprint" means the property affects any html element where the class="noprint". Example
<img src="image.jpg" class="noprint">

A little more complex but good for large web sites is an external style sheet. Replace the style tags and everything in between with
<link rel="stylesheet" type="text/css" media="print" href="stylesheet.css">
Then in a seperate file named stylesheet.css, you write
.noprint {
display:none;
}
and you can define other things in the file as well, like font colors, borders, backgrounds, etc.

Here's a good introduction to CSS (http://www.htmlgoodies.com/tutors/ie_style.html)
Here's more information on stylesheets by the same author (http://www.htmlgoodies.com/beyond/css.html)