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

Printing noob question

Status
Not open for further replies.

Wes12345

Programmer
Jun 28, 2004
2
US
I can't seem to find a post that works for me. I have tried the <div style = "page-break-after:always;"> but it does not do what I need. I have a dynamic page and there is no way for me to tell which <tr> I need to break on.

<table... border="1">
<tr>
<td>
The cell here gets cutt off if it is at
the bottom of the page.
</td>
</tr>
</table>

I put the div tag around the <tr> but when the <tr> is looped how do I know when to break to next page?

Thanks for any help

Wes
 
Where a page breaks for someone depends on the individual printer they use, and whether they have headers and/or footers turned on, as well as how they have their font sizes set. Which means that if you get a page looking well for yourself, there's no guarantee it'll work the same for other people who want to print the page.

If you want an approximation, count the number of lines you get on a page, then subtract a few for browser setting variations, and you should have a format that will work for a large part of your audience.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top