html page break in printing

i wanted to know in what way the browser divied one long html page 
into numbers of pages when printing this long html page.
how can i know the length (in pixels or lines) of the pages ( that the browser was divided).
i build a program that create dinamic html source .i want to control the printing of the long html page
in a way that prevent me from cutting tables or paragraph in the middle.
how can i know my position (in pixels or rows) in the beginings of table or paragraph ,
the length (in pixels or rows) of the table or paragraph and how many pixels or rows is left until the end of the print page.
if i'll know all this parameters it is posible to put in the html source the  page-break-after: always order in the place 
i want to jump to new page in the print

hope that some one can advice or help me in this issue
smadar
smadar@cav.co.il  

Received on Thursday, 19 September 2002 05:32:05 UTC