By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,404 Members | 1,873 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,404 IT Pros & Developers. It's quick & easy.

Printing multi-page html documents

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.