Printing relative DIVs: large gap

J

Jan Doggen

Hello,

If I print the code below from IE, I get a large vertical gap at the top of
my first page. The size of the gap is proportional to the contents of the
DIVs. Why is this, what's the workaround?
Note that the <TABLE> is essential; if I leave that out, no problems.
Thanks in advance!
Jan

<HTML>
<HEAD>
</HEAD>

<body topmargin="0" leftmargin="0">
<Table cellspacing=0 cellpadding=0 border=0 width=700>
<TR><TD>
<div style="position: relative">
<Table Cellspacing=0 cellpadding=0 border=0 width=600>
<TR><TD>Medewerker nummer 1</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
</table>
</div>
<div style="position: relative; page-break-before: always">
<Table Cellspacing=0 cellpadding=0 border=0 width=600>
<TR><TD>Medewerker nummer 2</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
<TR><TD Colspan="2">Persoonsgegevens</TD></TR>
</table>
</div>
</TD></TR>
</TABLE>
</BODY>
</HTML>
 
J

Jan Doggen

Found it:
I should not use "page-break-before: always" inside of a TABLE.
I managed to write the surrounding TABLE out of our app and it works fine
now

Bye
Jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top