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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing headers

Status
Not open for further replies.

stewartwebb

Programmer
Jan 6, 2004
92
GB
Hello all.

I'm trying to get headers to print on each page, this is what I have so far.

Below is the 'table' which will be the header on each page.
Is this correct?

Code:
<table cellpadding="0" cellspacing="0" width="100%" class="nestedTable" id="TERRITORY_ROW"> 
<thead style="display:table-header-group;">
<tr height="20">
<th height="19" valign="middle" width="2%" class="cellBorder">Option</th>
<th height="19" valign="middle" width="10%" class="cellBorder">Description</th>
<th height="19" valign="middle" width="2%" class="cellBorder">Family</th>
</tr>
</thead>
</table>

Basically in the javascript all i'm doing is setting other tables to display='none', then window.print().
The header is not being printed on each page.
Any ideas?

Stewart
 
Rather than use javascript, I'd suggest you have a seperate stylesheet for printing.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top