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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Break

Status
Not open for further replies.

kkcarlton

MIS
Sep 13, 2004
27
0
0
US
Hi,

I have a php page that pops up a print window - also a php page. In the pop up page I have the following code which I was hoping would enforce a page break when printing, but it does not:

<tr><td width=100% colspan=4>&nbsp;
<hr size="5" noshadow> <p style="page-break-before: always"><center><b></b></center></p>
</td>
</tr>
</table>
<table border="1" width="100%">

Can someone point out what I am doing wrong?

Thanks,
KC
 
Can someone point out what I am doing wrong?

You have no opening html, body, or table tags, an erroneous closing table tag, and no closing body or html tags.

Also, you don't say which browser you are using to print... it's possible that the browser you're using doesn't support the "page-break-before" style.

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Hi,

Sorry - I did not copy the entire text. I do have closing tags. I tried with Firefox but will give IE a try and see if it helps.

Any other thoughts?

KC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top