Forum Moderators: not2easy

Message Too Old, No Replies

Problem with printing part of the header on first page

On the first print out page I need to print only part of the header

         

helpme1234

8:39 pm on Oct 23, 2007 (gmt 0)

10+ Year Member



Hi everyone,

Need help
I have a table , in which I am using <thead><tbody><tfoot>.
I am able to see the header and the footer on all the pages when I print it.

"But I need to print only the 2nd row of <thead> on the First Page and then the entire <thead> on the remaining pages."

Is there a way I can make my 1st row invisible only when the first page is printed.

<html>
<head>

<STYLE type="text/css">
thead {display: table-header-group;}
tfoot {display: table-footer-group;}
</STYLE>

</head>
<body>
<table>
<thead>
<tr><td>Do not display on first page</td></tr>
<tr><td>display on all pages</td></tr>
</thead>
<tbody>
<tr><td>Main body</td></tr>
</tbody>
<tfoot>
<tr><td>footer</td></tr>
</tfoot>
</table></body></html>

Thanks :)

Marshall

2:50 pm on Oct 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi helpme1234. Welcome to WebmasterWorld.

If you are using a style sheet, you may want to consider a separate one for printing where to specify the <td> to display: none; for printing or, if display:none doesn't work, set the font color of the <td> to the same as your background.

Marshall

helpme1234

7:12 am on Oct 29, 2007 (gmt 0)

10+ Year Member



Hi,
If I do display:none or change the color of the column/row. It gets affected on all the pages while printing.
How do I make it work, so that I do not display the row only on the first print page and display it on the remainig pages.
I searched and came accross @page: first rule, but I am going wrong in applying it.
Maybe If someone could tell me how to make this work.