Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old September 26th, 2006, 08:05 PM
Milagro
Guest
 
Posts: n/a
Default Printing multi-page html documents

Hi,


I have one long page (10-15 printed pages) HTML page. I'd like to be
able to control where
page breaks are (where the printer decides to start a new page) when a
user prints the page.

The data that is being printed out is all text with no graphics.
Is there some simple HTML tag/command that I can put into the page so
it will tell whatever printer it's using "Hey, start a new page!". ?

If not HTML, how about in CSS, can I do it that way?

Thanks very much,

Mike


  #2  
Old September 26th, 2006, 08:25 PM
Darin McGrew
Guest
 
Posts: n/a
Default Re: Printing multi-page html documents

In article <2006092615120716807-@news.adelphia.net>, <Milagrowrote:
Quote:
Is there some simple HTML tag/command that I can put into the page so
it will tell whatever printer it's using "Hey, start a new page!". ?
>
If not HTML, how about in CSS, can I do it that way?
See http://www.htmlhelp.com/faq/html/eff...tml#page-break
--
Darin McGrew, mcgrew@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, darin@htmlhelp.com, http://www.HTMLHelp.com/

"If at first you don't succeed, then plug it in and try again."
  #3  
Old September 26th, 2006, 09:05 PM
Stephen Poley
Guest
 
Posts: n/a
Default Re: Printing multi-page html documents

On Tue, 26 Sep 2006 19:34:36 +0000 (UTC), Darin McGrew
<mcgrew@stanfordalumni.orgwrote:
Quote:
>In article <2006092615120716807-@news.adelphia.net>, <Milagrowrote:
Quote:
>Is there some simple HTML tag/command that I can put into the page so
>it will tell whatever printer it's using "Hey, start a new page!". ?
>>
>If not HTML, how about in CSS, can I do it that way?
>
>See http://www.htmlhelp.com/faq/html/eff...tml#page-break
As a clarification of that:

{page-break-before: always} is actually pretty well supported - IE6,
Firefox, Opera, and I think also Safari.

However, given the quite correct warning on that page that other peoples
font size - and indeed their paper size - may well be different,
{page-break-inside: avoid} is often more useful, when used with
appropriate bracketing elements. Sadly I believe Opera is about the only
browser that supports it.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
  #4  
Old September 27th, 2006, 12:55 AM
Milagro
Guest
 
Posts: n/a
Default Re: Printing multi-page html documents

On 2006-09-26 16:14:15 -0400, Stephen Poley
<sbpoleySpicedHamTrap@xs4all.nlsaid:
Quote:
On Tue, 26 Sep 2006 19:34:36 +0000 (UTC), Darin McGrew
<mcgrew@stanfordalumni.orgwrote:
>
Quote:
>In article <2006092615120716807-@news.adelphia.net>, <Milagrowrote:
Quote:
>>Is there some simple HTML tag/command that I can put into the page so
>>it will tell whatever printer it's using "Hey, start a new page!". ?
>>>
>>If not HTML, how about in CSS, can I do it that way?
>>
>See http://www.htmlhelp.com/faq/html/eff...tml#page-break
>
As a clarification of that:
>
{page-break-before: always} is actually pretty well supported - IE6,
Firefox, Opera, and I think also Safari.
>
However, given the quite correct warning on that page that other peoples
font size - and indeed their paper size - may well be different,
{page-break-inside: avoid} is often more useful, when used with
appropriate bracketing elements. Sadly I believe Opera is about the only
browser that supports it.
Thanks for the help!

 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles