> What your issue is, I'm not entirely sure.
Pardon me for not stating my issue clearly... I am yet a novice.. :D
My issue is not breaking of pages... CSS style 'Page-break' works
fine. The issue is the display of these elements as contiguous.
Is your div containing the tables as you desire, or not? I'm really not
clear on that.
Please create a live example and post a URL so what you're asking can be
more lucent.
I am sorry that I will be unable to post a URL... However, I will try
to explain with an example...
I will take a scenario wherein I want to have two tables in two pages
of the document. The first table/s will be 48px from the top of the
page, and the second would be 96px from the top of the page. Hence, if
I do a print of the document, I will effectively get two pages, with
two tables each in them, like this,
Page 1
--------------------
| |
| <Table at 48px> |
| |
| |
| <Table at 96px> |
| |
--------------------
Page 2
--------------------
| |
| <Table at 48px> |
| |
| |
| <Table at 96px> |
| |
--------------------
However, when the html document is viewed(display) , the tables overlap
each other.. I mean, the tables of the second page, write over the
tables in the first page. I know this is 'cos of the CSS absolute
positioning of elements.
I believed the DIV to bloat up to accomodate the TABLEs specified in
it. Hence, when the next DIV is relatively positioned to the previous,
four tables could be viewed, one below the other... This is my
requirement...
The code snippet for this is as below,
<DIV STYLE="width:'1 00%';position:r elative;BORDER-TOP:'1PX SOLID
BLUE';BORDER-LEFT:'1PX SOLID BLUE';BORDER-RIGHT:'1PX SOLID
BLUE';BORDER-BOTTOM:'1PX SOLID BLUE';">
<TABLE HEIGHT="48PX" STYLE="width:'8 0%';BORDER-TOP:'1PX SOLID
BLACK';BORDER-LEFT:'1PX SOLID BLACK';BORDER-RIGHT:'1PX SOLID
BLACK';BORDER-BOTTOM:'1PX SOLID
BLACK';position :absolute;left: '0PX';top:'0PX' ;">
<TR>
<TD ALIGN=CENTER VALIGN=MIDDLE>T est1</TD>
</TR>
</TABLE>
<TABLE HEIGHT="48PX" STYLE="width:'6 0%';BORDER-TOP:'1PX SOLID
BLACK';BORDER-LEFT:'1PX SOLID BLACK';BORDER-RIGHT:'1PX SOLID
BLACK';BORDER-BOTTOM:'1PX SOLID
BLACK';position :absolute;left: '0PX';top:'96PX ';">
<TR>
<TD ALIGN=CENTER VALIGN=MIDDLE>T est2</TD>
</TR>
</TABLE>
</DIV>
<DIV STYLE="PAGE-BREAK-AFTER:always;po sition:relative ;"></DIV>
<DIV STYLE="width:'1 00%';position:r elative; BORDER-TOP:1PX SOLID RED;
BORDER-LEFT:1PX SOLID RED; BORDER-RIGHT:1PX SOLID RED;
BORDER-BOTTOM:1PX SOLID RED;">
<TABLE HEIGHT="48PX" STYLE="width:'8 0%';BORDER-TOP:'1PX SOLID
BLACK';BORDER-LEFT:'1PX SOLID BLACK';BORDER-RIGHT:'1PX SOLID
BLACK';BORDER-BOTTOM:'1PX SOLID
BLACK';position :absolute;left: '0PX';top:'0PX' ;">
<TR>
<TD ALIGN=CENTER VALIGN=MIDDLE>T est3</TD>
</TR>
</TABLE>
<TABLE HEIGHT="48PX" STYLE="width:'6 0%';BORDER-TOP:'1PX SOLID
BLACK';BORDER-LEFT:'1PX SOLID BLACK';BORDER-RIGHT:'1PX SOLID
BLACK';BORDER-BOTTOM:'1PX SOLID
BLACK';position :absolute;left: '0PX';top:'96PX ';">
<TR>
<TD ALIGN=CENTER VALIGN=MIDDLE>T est4</TD>
</TR>
</TABLE>
</DIV>
You will note that the tables are encompassed and absolutely
positioned inside and wrt a DIV. Thus each DIV would emulate a page...
This is the best my vocabulary can do... I hope I have stated my
point.. I greatly appreciate your help folks...
Regards,
Rithish.