473,382 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to separate a html text in order to print each part in individual pages?

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.

Jul 21 '05 #1
4 7401
<ma******@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.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.
Jul 21 '05 #2
ma******@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.
Jul 21 '05 #3

ma******@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.

Jul 21 '05 #4
ph*******@treefic.com wrote:
ma******@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.


IE6 does; therefore, I'd suspect, without certainty, that newer,
full-featured browsers do.
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: bbxrider | last post by:
one of my fist asp pages i have vbscript rountines that are sending page text with response.write they are in the asp file before regular html text yet the html text appears first on the page???...
4
by: marcelf3 | last post by:
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...
0
by: marcelf3 | last post by:
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...
0
by: dleh | last post by:
I have been tasked with producing a server application that will convert excel files to html. I have no experience of developing under Windows, (but plenty of UNIX/C++ experience) but I picked...
2
by: Frank | last post by:
From: "Frank" <fkaesser@pfmail.com> Subject: Can I Use HTML Text Writer i a Custom Control to Render the <head> Section? Date: Wednesday, January 18, 2006 11:38 AM I would like to create a...
1
by: rakesh kakarla | last post by:
Hey guys, Does anyone of you know how to count the number of pages that A HTML page would print. My objective is to count the number of pages in an HTML page using javascript. my application...
1
by: Homer J. Simpson | last post by:
I've been toying with ASP.NET 2.0 for a few weeks now, and have only recently started looking at the login controls. The ASP.NET web site admin tool lets you create access/deny rules that apply...
5
by: ajos | last post by:
hi frnds, this is the way i ve written--> <html:text name="bdgtmastForm" property="publicity_code" size="5" maxlength="5"> but its giving me an error which seems irrelevent.. type Exception...
3
by: thelma | last post by:
I am generating an HTML form in PHP. I'd like to see the HTML statements that I've written, but both the echo and print commands respond by actually executing the HTML. How can I see the raw HTML...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.