469,609 Members | 1,530 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

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
Sep 26 '06 #1
3 5428
In article <20******************@news.adelphia.net>, <Milagrowrote:
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, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"If at first you don't succeed, then plug it in and try again."
Sep 26 '06 #2
On Tue, 26 Sep 2006 19:34:36 +0000 (UTC), Darin McGrew
<mc****@stanfordalumni.orgwrote:
>In article <20******************@news.adelphia.net>, <Milagrowrote:
>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/
Sep 26 '06 #3
On 2006-09-26 16:14:15 -0400, Stephen Poley
<sb******************@xs4all.nlsaid:
On Tue, 26 Sep 2006 19:34:36 +0000 (UTC), Darin McGrew
<mc****@stanfordalumni.orgwrote:
>In article <20******************@news.adelphia.net>, <Milagrowrote:
>>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!

Sep 26 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Roger Binns | last post: by
11 posts views Thread by Marian Aldenhövel | last post: by
9 posts views Thread by Jody Gelowitz | last post: by
reply views Thread by Justin | last post: by
1 post views Thread by John | last post: by
4 posts views Thread by DS | last post: by
2 posts views Thread by woodensails | last post: by
1 post views Thread by Yatin Bhuta | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.