PC Review


Reply
Thread Tools Rate Thread

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

 
 
ToferKing
Guest
Posts: n/a
 
      16th Apr 2008
<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
 
Reply With Quote
 
 
 
 
md Webs Unlimited
Guest
Posts: n/a
 
      16th Apr 2008
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

"ToferKing" <(E-Mail Removed)> wrote in message
news:AC14F51E-3CC9-4DE2-8040-(E-Mail Removed)...
> <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



 
Reply With Quote
 
Dan L
Guest
Posts: n/a
 
      16th Apr 2008
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.

"md Webs Unlimited" wrote:

> 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
>
> "ToferKing" <(E-Mail Removed)> wrote in message
> news:AC14F51E-3CC9-4DE2-8040-(E-Mail Removed)...
> > <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

>
>
>

 
Reply With Quote
 
Jens Peter Karlsen
Guest
Posts: n/a
 
      16th Apr 2008
Yes, otherwise it should be {page-break-after: always}

Regards Jens Peter Karlsen.

On Wed, 16 Apr 2008 06:14:00 -0700, Dan L
<(E-Mail Removed)> wrote:

>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.
>
>"md Webs Unlimited" wrote:
>
>> 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
>>
>> "ToferKing" <(E-Mail Removed)> wrote in message
>> news:AC14F51E-3CC9-4DE2-8040-(E-Mail Removed)...
>> > <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

>>
>>
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page break code - hpagebreak before value Maarkr Microsoft Excel Programming 3 15th Oct 2009 05:34 PM
Page break code mkurasinski@midstatemedical.org Microsoft Excel Programming 2 9th Jul 2009 08:35 PM
How to insert Page Break in code gmnospam@nospam.xyz Microsoft Dot NET 2 28th Sep 2004 02:18 AM
add page break code in csv file to force break when loading. tim Microsoft Excel Misc 3 1st Apr 2004 01:49 AM
Code to insert a Page Break Moore Microsoft Excel Programming 2 6th Aug 2003 04:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:46 AM.