HTML Tag for Page Break

jimmycav78

Member
Jun 9, 2000
67
0
0
Does anyone know what the HTML tag is for inserting a page break? It doesn't have to show up on the screen, just when the page prints out.
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
It is not an html tag, its a Cascading Style Sheet property.

page-break-after: ?
when printed, breaks the page at the location of the tag (always, auto: default)
page-break-before: ?
when printed, breaks the page before the location of the tag (always, auto: default)

so you would do something like this:


<style>
br { page-break-after: always; }
</style>

then whenever you use the <br> tag, it would insert a page break after the tag
 

jimmycav78

Member
Jun 9, 2000
67
0
0
ok...i tried that....am i doing something wrong?

I'm sticking the <style>...</style> stuff in the head.

Whenever i put a <br> tag in the HTML it doesn't break. I did a cut and paste.