PC Review


Reply
Thread Tools Rate Thread

Can I insert page breaks?

 
 
plh
Guest
Posts: n/a
 
      7th Jan 2004
Is it possible to put page breaks in a web page, so that when someone
prints it, I can keep from splitting up tables? Similar to what one
does with MS Word? The problem I have is this: small tables separated
by text, and the tables often get broken up (begin at the bottom of
one page and resume at the top of the next) when the page is printed.
Thank You,
Paul H
I keep hitting "Esc" -- but I'm still here!
[if "123" is in email address, that is an anti-spam thing.]
 
Reply With Quote
 
 
 
 
Jim Buyens
Guest
Posts: n/a
 
      7th Jan 2004
>-----Original Message-----
>Is it possible to put page breaks in a web page, so that
>when someone prints it, I can keep from splitting up
>tables? Similar to what one does with MS Word? The
>problem I have is this: small tables separated by text,
>and the tables often get broken up (begin at the bottom
>of one page and resume at the top of the next) when the
>page is printed.


Add this attribute to your <table> tag
style="page-break-inside: avoid; "

If this isn't exactly what you need, browse
http://www.w3.org/TR/CSS2/page.html#page-break-props
for more possibilities.

Also, a warning: browser support for page-break
properties is uneven.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------





 
Reply With Quote
 
Andrew Murray
Guest
Posts: n/a
 
      7th Jan 2004
The splitting of tables as you describe could also have more to do with your
printer margins rather than just page breaks.....in I.E. you can print-preview
and adjust page margins and so on - I would adjust the margins until it looks
"right" and test print.

Be aware though user's printers will differ and the output will differ. If you
want to,there should be an alternative to create a "printer friendly page" like
you see everywhere - even if you link to a word document (assuming the user has
got Word......) or a PDF file. (assuming you have Acrobat to be able to create
PDF's and that the user has Acrobat reader.....

Maybe Word or PDF would be the way to go - if you want to preserve your table
formatting.


"Jim Buyens" <(E-Mail Removed)> wrote in message
news:05df01c3d4db$b9515f70$(E-Mail Removed)...
> >-----Original Message-----
> >Is it possible to put page breaks in a web page, so that
> >when someone prints it, I can keep from splitting up
> >tables? Similar to what one does with MS Word? The
> >problem I have is this: small tables separated by text,
> >and the tables often get broken up (begin at the bottom
> >of one page and resume at the top of the next) when the
> >page is printed.

>
> Add this attribute to your <table> tag
> style="page-break-inside: avoid; "
>
> If this isn't exactly what you need, browse
> http://www.w3.org/TR/CSS2/page.html#page-break-props
> for more possibilities.
>
> Also, a warning: browser support for page-break
> properties is uneven.
>
> Jim Buyens
> Microsoft FrontPage MVP
> http://www.interlacken.com
> Author of:
> *----------------------------------------------------
> |\---------------------------------------------------
> || Microsoft Office FrontPage 2003 Inside Out
> ||---------------------------------------------------
> || Web Database Development Step by Step .NET Edition
> || Microsoft FrontPage Version 2002 Inside Out
> || Faster Smarter Beginning Programming
> || (All from Microsoft Press)
> |/---------------------------------------------------
> *----------------------------------------------------
>
>
>
>
>



 
Reply With Quote
 
Nomad
Guest
Posts: n/a
 
      7th Jan 2004
Okay, (me) being relatively new at this, how would one code a 'printer
friendly page' Andrew?
--
Nomad


"Andrew Murray" <(E-Mail Removed)> wrote in message
news:3ffbf468$0$1729$(E-Mail Removed)...
> The splitting of tables as you describe could also have more to do with

your
> printer margins rather than just page breaks.....in I.E. you can

print-preview
> and adjust page margins and so on - I would adjust the margins until it

looks
> "right" and test print.
>
> Be aware though user's printers will differ and the output will differ.

If you
> want to,there should be an alternative to create a "printer friendly page"

like
> you see everywhere - even if you link to a word document (assuming the

user has
> got Word......) or a PDF file. (assuming you have Acrobat to be able to

create
> PDF's and that the user has Acrobat reader.....
>
> Maybe Word or PDF would be the way to go - if you want to preserve your

table
> formatting.
>
>
> "Jim Buyens" <(E-Mail Removed)> wrote in message
> news:05df01c3d4db$b9515f70$(E-Mail Removed)...
> > >-----Original Message-----
> > >Is it possible to put page breaks in a web page, so that
> > >when someone prints it, I can keep from splitting up
> > >tables? Similar to what one does with MS Word? The
> > >problem I have is this: small tables separated by text,
> > >and the tables often get broken up (begin at the bottom
> > >of one page and resume at the top of the next) when the
> > >page is printed.

> >
> > Add this attribute to your <table> tag
> > style="page-break-inside: avoid; "
> >
> > If this isn't exactly what you need, browse
> > http://www.w3.org/TR/CSS2/page.html#page-break-props
> > for more possibilities.
> >
> > Also, a warning: browser support for page-break
> > properties is uneven.



 
Reply With Quote
 
plh
Guest
Posts: n/a
 
      13th Jan 2004
Hello Jim,
Thank you for responding.
I tried that (style="page-break-inside: avoid; ") but it does not seem
to work. Maybe I am applying it wrong. Here is what I have:
</FONT>
<U>
<TABLE BORDER CELLSPACING=1 CELLPADDING=7 WIDTH=655
style="page-break-inside: avoid; ">
<TR>

(Line beginning "<TABLE BORDER" ends "avoid; ">" that is not wrapped
as it may appear here).
Thank you,
-plh

On Tue, 6 Jan 2004 21:04:26 -0800, "Jim Buyens"
<(E-Mail Removed)> wrote:

>>-----Original Message-----
>>Is it possible to put page breaks in a web page, so that
>>when someone prints it, I can keep from splitting up
>>tables? Similar to what one does with MS Word? The
>>problem I have is this: small tables separated by text,
>>and the tables often get broken up (begin at the bottom
>>of one page and resume at the top of the next) when the
>>page is printed.

>
>Add this attribute to your <table> tag
> style="page-break-inside: avoid; "
>
>If this isn't exactly what you need, browse
> http://www.w3.org/TR/CSS2/page.html#page-break-props
>for more possibilities.
>
>Also, a warning: browser support for page-break
>properties is uneven.
>
>Jim Buyens
>Microsoft FrontPage MVP
>http://www.interlacken.com
>Author of:
>*----------------------------------------------------
>|\---------------------------------------------------
>|| Microsoft Office FrontPage 2003 Inside Out
>||---------------------------------------------------
>|| Web Database Development Step by Step .NET Edition
>|| Microsoft FrontPage Version 2002 Inside Out
>|| Faster Smarter Beginning Programming
>|| (All from Microsoft Press)
>|/---------------------------------------------------
>*----------------------------------------------------
>
>
>
>


I keep hitting "Esc" -- but I'm still here!
[if "123" is in email address, that is an anti-spam thing.]
 
Reply With Quote
 
Jim Buyens
Guest
Posts: n/a
 
      13th Jan 2004
plh <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Hello Jim,
> Thank you for responding.
> I tried that (style="page-break-inside: avoid; ") but it does not seem
> to work. Maybe I am applying it wrong. Here is what I have:
> </FONT>
> <U>
> <TABLE BORDER CELLSPACING=1 CELLPADDING=7 WIDTH=655
> style="page-break-inside: avoid; ">
> <TR>
>
> (Line beginning "<TABLE BORDER" ends "avoid; ">" that is not wrapped
> as it may appear here).
> Thank you,
> -plh


Just offhand, that looks correct. Again, if that's not producing
the results you want, browse
http://www.w3.org/TR/CSS2/page.html#page-break-props
for more possibilities.

And again, support for page-break properties varies widely
among browsers.

Personally, I try to keep Web processes 100% on line. This
avoids any need to print.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
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
VBA To Insert Page Breaks J. Trucking Microsoft Excel Discussion 1 11th Aug 2008 02:51 AM
Insert objects at page breaks =?Utf-8?B?RFJTIC0gSm9uYXRoYW4=?= Microsoft Word Document Management 4 29th Nov 2004 07:16 PM
Re: insert page breaks NickHK Microsoft Excel Programming 2 23rd Sep 2004 03:12 AM
insert page breaks =?Utf-8?B?QnJ1Y2U=?= Microsoft Excel Programming 0 22nd Sep 2004 10:45 AM
insert page breaks every 43 lines chase Microsoft Excel Programming 2 6th Aug 2003 03:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:46 PM.