Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > HTML Table -> Page Print

Reply
Thread Tools

HTML Table -> Page Print

 
 
rehanbasar
Guest
Posts: n/a
 
      08-03-2006
I have implemeted header and footer on asp page using <th> and <tf>
> tags. Is there any way possible through which I can restrict a table (within a table) or a row of table completely on one page. That means either it would print completely on page1 or page 2.



ThnX in advance

 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      08-03-2006
rehanbasar wrote:
> I have implemeted header and footer on asp page using <th> and <tf>


There is no such element as <tf> in HTML.

> tags. Is there any way possible through which I can restrict a table
> (within a table)


A what? http://dorward.me.uk/www/nested/

> or a row of table completely on one page. That
> means either it would print completely on page1 or page 2.


Take a look a the page-break-* properties in CSS 2. Browser support is
somewhat variable.

http://w3.org/TR/CSS2/

 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      08-03-2006
rehanbasar wrote:

> I have implemeted header and footer on asp page using <th> and <tf>
> tags.


You'd be better using the <thead> and <tfoot> tags, which exist and are
valid.
http://www.w3.org/TR/html4/struct/ta...tml#edef-THEAD

Even though it exist, don't use <th> for this. <th> isn't a header,
it's a _header_cell_. It behaves like a cell not a row. Also you can
potentially use it anywhere you want this formatting.

> Is there any way possible through which I can restrict a table (within a table) or a row of > table completely on one page. That means either it would print completely on page1
> or page 2.


This is unreliable and awkward, owing to browser problems. The CSS
page-break-inside : avoid;
rule is where to start looking
http://www.w3.org/TR/CSS21/page.html#page-break-props

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
print a vs print '%s' % a vs print '%f' a David Cournapeau Python 0 12-30-2008 03:19 AM
Problem - I want to print Current Output of Pdf file and should print once.I get print dialog box but it is not working keto Java 0 05-30-2007 11:27 AM
Print HTML Report Page or Print multiple application pages Sam ASP .Net 1 11-10-2006 10:05 PM
copy part of HTML Table to another HTML page lvcha.gouqizi ASP General 0 12-29-2005 03:46 AM
Unlarging the print to print using PDF file to print Bun Mui Computer Support 3 09-13-2004 03:15 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57