This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Stylesheets > January 2005 > How to separate a html text in order to print each part in individual pages?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to separate a html text in order to print each part in individual pages?
|
|
| marcelf3@yahoo.com 2005-01-28, 7:42 pm |
| Hello,
I am a novice/moderate html programmer and I wonder how to tell the
browser from which start point and to which end point in the text will
each page be printed.
In other words, I have a single html text that contains different
informations that are displayed alltogether in the same browser.
When I print this page, the browser should put each different subject
in a separate page and not having it all mixed up.
Is it possible? How should i do it?
Ps.: This text can't be divided in different html files, it is only one
html file.
Thanks in advance,
Marcel.
| |
| Dag Sunde 2005-01-28, 7:42 pm |
| <marcelf3@yahoo.com> wrote in message
news:1106911845.492424.119090@z14g2000cwz.googlegroups.com...
> Hello,
> I am a novice/moderate html programmer and I wonder how to tell the
> browser from which start point and to which end point in the text will
> each page be printed.
> In other words, I have a single html text that contains different
> informations that are displayed alltogether in the same browser.
> When I print this page, the browser should put each different subject
> in a separate page and not having it all mixed up.
> Is it possible? How should i do it?
>
> Ps.: This text can't be divided in different html files, it is only one
> html file.
CSS might help you...:
http://www.w3schools.com/css/css_ref_print.asp
--
Dag.
| |
| phil_gg04@treefic.com 2005-01-28, 7:42 pm |
|
marcelf3@yahoo.com wrote:
> Hello,
> I am a novice/moderate html programmer and I wonder how to tell the
> browser from which start point and to which end point in the text
will
> each page be printed.
@media print {
h1 {
page-break-before: always;
}
}
will put cause each <h1> heading to start a new page.
See http://www.w3.org/TR/CSS21/page.html for CSS properties for "paged
media".
You will need to investigate whether browsers actually implement these
properties.
--Phil.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|