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

displaying page numbers on html

P: n/a
If a user prints an html file, is there a way to display page numbers
on the document using cascading style sheets or something of that
sort? I have a document that is generated dynamically by form data
using Perl, and would like some sort of page numbering system on each
page. It seems like some browsers have the option to print page #'s,
but at least Netscape 7 doesn't (and most of my users are primarily
unix-based).

I realize printing a document is somewhat outside of the realm of
HTML's grasp, but I was hoping maybe someone had a clever solution.
Since the content of the html is dynamic, formatting it so I know
where the page breaks occur is not easy. Not to mention, each version
of Netscape prints using a different font apparently.

Thanks,
Dustin
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <72**************************@posting.google.com >,
bl*******@austin.rr.com enlightened us with...

I realize printing a document is somewhat outside of the realm of
HTML's grasp, but I was hoping maybe someone had a clever solution.
Since the content of the html is dynamic, formatting it so I know
where the page breaks occur is not easy. Not to mention, each version
of Netscape prints using a different font apparently.


There is a way to control the font when printed (see stylesheet media
param). As to the page numbers, I don't think so.
http://www.meyerweb.com/eric/article...ev/200001.html
Asking this in comp.infosystems.www.authoring.stylesheets might be
fruitful.

--
--
~kaeli~
Who is General Failure and why is he reading my hard disk?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2

P: n/a
It seems "Dustin D." wrote in comp.infosystems.www.authoring.html:
If a user prints an html file, is there a way to display page numbers
on the document using cascading style sheets or something of that
sort?


No.

Most browsers do this, usually with information like date and URL.
It is a browser setting by the user, not anything set by the
document author.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.