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

Table

Status
Not open for further replies.

Ladyhawk

Programmer
Jan 22, 2002
534
AU
Is it possible to force a table to fill the whole printed page. For example, if the last page needed for the table is only half filled, can I somehow tell the browser to make the last row height bigger to fill the rest of the page? I am trying to get a html header/ footer on a page (but I want the footer in the same location on every page) and so far the following code is the only way I can see to coming close to how to do it...

<HTML>
<HEAD>

<STYLE>BODY{font-size: 18pt }</STYLE>

<BODY>

<TABLE height=100% width=100% border=1 cols=1>
<THEAD style=&quot;display: table-header-group&quot;>
<TR><TH>My header</TH></TR>
</THEAD>
<TFOOT style=&quot;display: table-footer-group&quot;>
<TR><TH><br>My footer</TH>
</TFOOT>
<TBODY>
<tr><td>PUT MANY LINES OF TEXT HERE TO TEST IT.</td></tr>
<tr><td>PUT MANY LINES OF TEXT HERE TO TEST IT.</td></tr>
<tr><td>PUT MANY LINES OF TEXT HERE TO TEST IT.</td></tr>
<tr><td>PUT MANY LINES OF TEXT HERE TO TEST IT.</td></tr>
<tr><td>PUT MANY LINES OF TEXT HERE TO TEST IT.</td></tr>
<tr><td>PUT MANY LINES OF TEXT HERE TO TEST IT.</td></tr>

</TBODY>

</TABLE>

</BODY>
</HTML>

Cheers.



Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
first of all how many pages are printed?

Known is handfull, Unknown is worldfull
 
Depends on how many rows are in the table. But for the sake of argument, say 3, but the last page is only half full so the footer is half way up the page.

Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
Ladyhawk,
Did you find a way to do this?? I have the same need.
-with thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top