If you know it's not the place for HTML, why do you post here? ;) There is a good HTML list a few clicks lower on the page....
You can use some CSS to hide the stuff you don't want to display when the page gets printed. Modern, standard compliant browsers support embedding a style sheet specifically for print media. Inside that style sheet, make sure the elements you don't want to be printed are hidden. Consider the following example that hides an HTML form button when the page is printed:
Code:
<html>
<head>
<title>Non Printable STuff</title>
<link href="/Styles/MainStyle.css" rel="stylesheet" type="text/css">
<link href="/Styles/PrintStyle.css" rel="stylesheet" type="text/css" media="print">
</head>
<body>
<input type="button" value="I am hidden" style="NonPrintable">
</body>
</html>
As you can see, two stylesheets are linked in the head section. One for ordinary, on-screen style stuff. The other has been marked with
media="print" which means it is only used when the page is printed.
To actually hide the button when the page is printed, you'll need to add the following definition for the NonPrintable class to the second stylesheet:
Code:
.NonPrintable
{
display: none;
}
I usually use this trick in combination with a reversed, PrintOnly class that only outputs stuff when the page is printed (like the full address of the page, for example).
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.