Click to See Complete Forum and Search --> : I need information


Boumxyz2
August 14th, 2002, 01:03 PM
Is there a way to generate a page break in HTML ?

gangelo
August 14th, 2002, 01:51 PM
Do you mean line break eg. <br />?

Boumxyz2
August 15th, 2002, 11:29 AM
I mean when you print, you tell the printer to change page.

Surrendermonkey
August 16th, 2002, 07:11 AM
I usually set a style up like this:
<style media="print">
.pagebreak {page-break-before:always}
</style>

and then assign the style with <... class="pagebreak"..> whenever I want a new page. Have a shufti at http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/pagebreakbefore.asp for applicable element tags.

Note, though, that this is an IE solution - any netscapers out there have any suggestions?