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

CSS Headers / Footers on Printout ????

P: n/a
Hi CSS gurus!

I have an embarassing problem.

I am a php programmer and I try to expound the advantages of css on the php
newsgroups.

However, after telling someone that they should use css to solve their
problem, I am having trouble coming up with the goods! + I would like to
know the answer too.

I am sure this is a common task: how do you get headers and footers onto a
printout?

For instance, a box is formatted to A4 width and takes more than a page to
print. How do you get the box to 'page break' add a footer and a header and
resume printing the box, with borders etc. intact?

Is it possible with css1 (or at least a good proprtion of browsers).

Any help greatly appreciated.

RU


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


P: n/a
Rupe wrote:
I am sure this is a common task: how do you get headers and footers onto a
printout?

For instance, a box is formatted to A4 width and takes more than a page to
print. How do you get the box to 'page break' add a footer and a header and
resume printing the box, with borders etc. intact?

Is it possible with css1 (or at least a good proprtion of browsers).


No. Headers and footers are a browser function, set up in the page
settings. Current browsers are generally poor at positioning page breaks.

--
Mark.
Jul 20 '05 #2

P: n/a

"Mark Tranchant" <ma**@tranchant.plus.com> wrote in message
news:GQ*******************@stones.force9.net...
Rupe wrote:
I am sure this is a common task: how do you get headers and footers onto a printout?

For instance, a box is formatted to A4 width and takes more than a page to print. How do you get the box to 'page break' add a footer and a header and resume printing the box, with borders etc. intact?

Is it possible with css1 (or at least a good proprtion of browsers).


No. Headers and footers are a browser function, set up in the page
settings. Current browsers are generally poor at positioning page breaks.

--
Mark.


Thanks Mark,

I was thinking more of server generated running headers and footers on a
'print friendly' page(s).

You are right, browsers don't do this stuff yet:

Here's how to add a running footer, but its only supported in in CSS2
(unsupported
in most browsers):

http://www.pwg.org/xhtml-print/HTML-...html#page_area

Ru

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.