...

View Full Version : Page-break Printing an HTML Table



Daniela
08-23-2002, 02:56 PM
Hi all, i'm new at all in XML / CSS.

I have an HTML table, it show a XML file using CSS.

My question is this, how i can tell the bowser to print the <thread> of the table in every page printing, it must have 50 line per page and after that make a page-break?

I see this at css help:

@page {size: 8in, 11in}
table.big {window:50 ; page-break:always}

but this not work. How i print the header of the table + 50 lines per page?

Thanks in advance and sorry for my english, i hope you can understand.

duniyadnd
08-23-2002, 10:39 PM
I'm not sure how you would do the "50" lines part, but you could check out the

page-break-before

OR

page-break-after

eg.

<style>
p {page-break-after: always}
</style>

means that there will always be a new page printed after <p>

As for the number of lines, you can try the height property though i'm not sure its compliant with all browsers.

Duniyadnd

Daniela
08-26-2002, 03:02 PM
I'll try it!

Daniela

duniyadnd
08-30-2002, 03:28 AM
Hey Daniela, if you're familiar with Php, this thread might give you some hints on how to create a page break after a certain number lines. Hope it helps, and hope you know php to find it useful.

http://www.codingforums.com/showthread.php?s=&threadid=5186

Duniyadnd



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum