wo****************@yahoo.com.au (Wolfgang Wildeblood) wrote in message news:<a9**************************@posting.google. com>...
You're obviously trying to achieve something a bit trickier than this
though, or you wouldn't need positioning at all.
You are right, Wolf... :D What I want to achieve is a bit more
trickier... However, I did not want to burden you all, with more of my
problems..
After some more browsing, I managed to hit upon an article which might
suit my purpose.. So I got to work on it, and lo !!! eureka !!!! ;D
The HTML document is structured as such.
<BODY>
<DIV> <!-- this denotes the beginning of the page -->
<DIV> <!-- this denotes the beginning of a table -->
<TABLE></TABLE>
</DIV> <!-- this denotes the end of the table -->
<DIV> <!-- this denotes the beginning of a table -->
<TABLE></TABLE>
</DIV> <!-- this denotes the end of the table -->
<!-- and as many more tables in a page -->
</DIV> <!-- this denotes the end of the page -->
<!-- and as many more pages in a document with a page break
inbetween -->
</BODY>
There are a few specific rules that I had noticed.
1. If a DIV contains elements inside it, which are relatively
positioned, then the DIV itself bloats up to accomodate these inner
elements.
2. If the inner elements of a DIV are absolutely positioned, then the
DIV does not expand to fill in the elements, but takes a width of 1
glyph.
3. If no positional attributes are specified for the inner elements of
a DIV, then the elements take their natural flow.
In order to simulate a paging display, I have structured the html as
such.
The table DIV is positioned relative to the page DIV, and the TABLE is
positioned absolute to the table DIV. ( refer diagram above )
The positioning of the table is obtained by specification of the STYLE
'margin-left' and 'margin-top' attributes of the table DIV.
Hence, rule 1 is satisfied, and the page DIV expands to accomodate its
inner table DIVs. The tables are positioned by specifying the
'margin-left' and 'margin-top' rather than the 'top' and 'left' style
attributes of the table DIV.
An example is as below.
<HTML>
<HEAD>
<TITLE></TITLE>
<BODY topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 >
<DIV STYLE="height:'1038.5115px';width:'769.695px';BORD ER-TOP:'1PX
SOLID BLUE';BORDER-LEFT:'1PX SOLID BLUE';BORDER-RIGHT:'1PX SOLID
BLUE';BORDER-BOTTOM:'1PX SOLID BLUE';">
<DIV STYLE="Position:'relative';margin-left:'76.9695px';margin-top:'48px';">
<TABLE ALIGN="CENTER" HEIGHT="48px" WIDTH="615.756px" STYLE="
POSITION:'absolute'; BORDER-TOP:'1PX SOLID BLACK'; BORDER-LEFT:'1PX
SOLID BLACK'; BORDER-RIGHT:'1PX SOLID BLACK'; BORDER-BOTTOM:'1PX SOLID
BLACK';">
<TR>
<TD ALIGN=CENTER VALIGN=MIDDLE>Test</TD>
</TR>
</TABLE>
</DIV>
</DIV>
<DIV STYLE="PAGE-BREAK-AFTER:always" ></DIV>
<DIV STYLE="height:'1038.5115px';width:'769.695px';BORD ER-TOP:'1PX
SOLID BLUE';BORDER-LEFT:'1PX SOLID BLUE';BORDER-RIGHT:'1PX SOLID
BLUE';BORDER-BOTTOM:'1PX SOLID BLUE';">
<DIV STYLE="Position:'relative';margin-left:'76.9695px';margin-top:'48px';">
<TABLE ALIGN="CENTER" HEIGHT="48px" WIDTH="615.756px" STYLE="
POSITION:'absolute'; BORDER-TOP:'1PX SOLID BLACK'; BORDER-LEFT:'1PX
SOLID BLACK'; BORDER-RIGHT:'1PX SOLID BLACK'; BORDER-BOTTOM:'1PX SOLID
BLACK';">
<TR>
<TD ALIGN=CENTER VALIGN=MIDDLE>Test</TD>
</TR>
</TABLE>
</DIV>
</DIV>
</BODY>
</HTML>
A big thanks to all of you people out there, who have heeded my
request, or atleast gave it some thought.
Regards,
Rithish.