Where am I supposed to put this code for a page break?

T

ToferKing

<STYLE TYPE="text/css">
P.breakhere {page-break-before: always}
</STYLE>

O.K., so I think this is the coding that I am supposed to be using to force
a page break on printing.

But I cannot figure out where the lines go.

My current page has

<HTML>
<Head>
</Head>
<Body>
</Body>
</HTML>

Where in that line up am I supposed to place
<Style>
</Style>

Thanks for all your help.

Tofer
 
M

md Webs Unlimited

They should go into the head of the web page. To do the pagination you'd
start a new paragraph with the CSS class selector .breakhere

<head>
<STYLE TYPE="text/css">
P.breakhere {page-break-before: always}
</STYLE>
</head>
<body>
<p> some text for this para</p>
<p class="breakhere"> This is some more text that will be on the page before
the page break at the printer.</>
<p> Somen text for page 2 of the printed document</>
<body>

--
Mike - FrontPage MVP '97 - '02
Expression Tools & Addin
http://www.j-moves.com
http://www.panemanager.com
FrontPage Tools & Addin
http://www.jbots.com
E-Commerce
http://www.candypress.com
 
D

Dan L

The <p class="breakhere"> paragraph will be the first para on the new page
because the CSS says "page-break-before: always", not on the page before
the page break at the printer.
 
J

Jens Peter Karlsen

Yes, otherwise it should be {page-break-after: always}

Regards Jens Peter Karlsen.
 

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

Top