This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Stylesheets > January 2005 > Re: How to separate a html text in order to print each part in individual
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 |
Re: How to separate a html text in order to print each part in individual
|
|
| legalois 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.
> 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.
>
To start with, this seems a peculiar goal; if it is desirable to render
separable parts of content "all mixed up" in one medium, why is it
desirable to separate parts of the same content in another?
The CSS media property is intended to permit one to 'render' a resource
differently in different media. Some combined use of media with other
CSS properties, such as class, might result in what you describe, but I
think that would--to put it nicely--extend the idea of rendering way
beyond what's intended by the standard. It would in any case be very
contrived.
I think the given html fails to achieve its objective. Re-consider
whether the content should be all mixed up in any medium.
| |
| Harlan Messinger 2005-01-28, 7:42 pm |
| phil_gg04@treefic.com wrote:
> marcelf3@yahoo.com wrote:
>
>
> will
>
>
>
> @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.
IE6 does; therefore, I'd suspect, without certainty, that newer,
full-featured browsers do.
| |
| legalois 2005-01-29, 4:19 am |
| 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.
> 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.
>
To start with, this seems a peculiar goal; if it is desirable to render
separable parts of content "all mixed up" in one medium, why is it
desirable to separate parts of the same content in another?
The CSS media property is intended to permit one to 'render' a resource
differently in different media. Some combined use of media with other
CSS properties, such as class, might result in what you describe, but I
think that would--to put it nicely--extend the idea of rendering way
beyond what's intended by the standard. It would in any case be very
contrived.
I think the given html fails to achieve its objective. Re-consider
whether the content should be all mixed up in any medium.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|