You are here: Help on page-break printing « HTML « IT news, forums, messages
Help on page-break printing

Posted by ekoymis on 09/14/05 11:59

Hi all,

I have this webpage whereby the tables (created using <table>, <td>,
<tr>) are specified in a sheet/layer using <DIV> tag. The problem is
when I want to print, it does not break to next page if the table does
not fit into current page. Instead, part of it will be in e.g page 1,
then in next page 2 continue with the rest of the table. I've attached
part of the html source below. I've have tried to put the attributes,
page-break-before: always, to the <table> tag, no effect. Did the same
to the <DIV>, also no effect.

So, any idea on having the table to be printed in the next page if
there is cannot be printer in the current page?

Appreaciate any advice/guidance. Thanks.

Rgds,
ekoymis

<STYLE>
.canvas {
position : absolute;
top : 20;
left : 0;
width : <% =response.write(screen_width) %>;
height : 1280;
visibility : visible;
Z-index : 0;
</STYLE>

<DIV ID='canvas' CLASS="canvas">
<table>.....</table>
<table>.....</table>
<table>.....</table>
<!-- the next table will be printed in page 1 and 2. Want to insert -->
<!-- a page break, here so that the next table will printed in page 2
instead
<table>.....</table>
<table>.....</table>
<table>.....</table>
<table>.....</table>
</DIV >

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация