Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page-break-after

Status
Not open for further replies.

Mighty

Programmer
Feb 22, 2001
1,682
US
I have one page that is split up into four paragraphs. The format is as follows:

<P STYLE=&quot;page-break-after: always;&quot;>
<TABLE>
.
.
.
</TABLE>
</P>

<P STYLE=&quot;page-break-after: always;&quot;>
.
.

and so on

When I try to print these four paragraphs, I get 8 pages in the following order:

Page 1: Paragraph 1
Page 2: Paragraph 2
Page 3: Paragraph 3
Page 4: Paragraph 4
Page 5: Blank
Page 6: Blank
Page 7: Paragraph 4
Page 8: Blank

This baffles me completely. Can anyone explain this to me??
Mise Le Meas,

Mighty :)
 
Hi Mighty,

It should work, but it seems that someting in your 4th paragraph occers this strange behaviour.
Is this table biger, or is there a big cell in it or something else strange?

Show us the complete code. It must be something you looked over allready a thousand times.

Erik
 
I managed to get this working by not specifying any page break style on the first paragraph and then using page-break-before on subsequent paragraphs. This seems to be working fine. Mise Le Meas,

Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top