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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.