Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppress printing of part of a page

Status
Not open for further replies.

MasterRacker

New member
Oct 13, 1999
3,343
US
Using an intranet template like this:
[tt]
<html>

<head>
<title>Title Is Here</title>
<link rel=&quot;stylesheet&quot; Type=&quot;text/css&quot; href=&quot;../Includes/SiteStyles.css&quot;>
<script src=&quot;../Includes/SiteScripts.js&quot;></script>
</head>

<body>
<script>Draw_StdHeader(&quot;Template&quot;);</script>

<table class=stdtable>
Page content goes here.......
</table>

<script>Draw_Footer();</script>
</body>
</html>
[/tt]

What can I do, either in the header and footer functions or better yet, in the page itself to suppress printing of the header and footer.

I would like the headers/footer to display on all pages, but I have certain content that is designed for printing where I would like only the content to print and I absolutely do not want to maintain two versions of those pages.


Jeff
I haven't lost my mind - I know it's backed up on tape somewhere ....
 
hi Jeff

1. try to use different media types:

<style media=&quot;screen&quot;>

#divtoprint {display:block}
#dontprint {display:block}

</style>

<style media=&quot;print&quot;>

#divtoprint {display:block}
#dontprint {display:none}

</style>
[display - ie only feature]


here is some more info on this subj:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top