INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Forced Headers and Footers

How do I force headers/footers to appear on printed page by rhackenb
Posted: 17 Nov 02

To force a header or footer to appear on every printed page of a web page, you can use the <THEAD> and <TFOOT> html markup.  You may want to do this to make a "Company Proprietary" note to appear on a printed copy of a company-internal document.

A working example can be found at
  http://www.eticomm.net/~rhackenb/test/tfoot.html

Bring up the page and either print it or do a print preview.  You'll see a header and footer appear on every printed page.

Here is an abbreviated form of it:

------------------------------------------------
<html>
<head>
<title> tfoot.html</title>
</head>
<body>
<center>
<TABLE >
  <THEAD  style="display: table-header-group">
    <TR><TH>Company Private </TH></TR>
  </THEAD>
  <TFOOT  style="display: table-footer-group">
    <TR><TH>Not for distribution outside the company</TH>
  </TFOOT>
<TBODY>
  <tr><td>
 
  PUT MANY LINES OF TEXT HERE TO TEST IT.
<ol>
  <li>Sample text
  <li>Sample text
        .......
  <li>Sample text
  <li>Sample text
</ol>

</td></tr>
</TBODY>

</TABLE>
</center>
</body>
</html>

------------------------------------------------

Note: this works with Internet Explorer, Netscape 6.0, and Mozilla but not with Netscape 4.7.

-- Bob Hackenberg
(rhackenb@eticomm.net)

Back to HTML, XHTML & CSS FAQ Index
Back to HTML, XHTML & CSS Forum

My Archive

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close