Connecting Tech Pros Worldwide Forums | Help | Site Map

How to split an HTML page for printing

LuTHieR
Guest
 
Posts: n/a
#1: Jul 14 '06
Hi,
I have an HTML document and would like to split it in pages for
printing. It consist basically of many tables, and I would like that
when I print it the output will be one table per physical page. Is it
somehow possible? Thanks,

LuTHieR


Rik
Guest
 
Posts: n/a
#2: Jul 14 '06

re: How to split an HTML page for printing


LuTHieR wrote:
Quote:
Hi,
I have an HTML document and would like to split it in pages for
printing. It consist basically of many tables, and I would like that
when I print it the output will be one table per physical page. Is it
somehow possible? Thanks,
CSS for printing:

table{
page-break-after: always;
}

Grtz,
--
Rik Wasmus


LuTHieR
Guest
 
Posts: n/a
#3: Jul 14 '06

re: How to split an HTML page for printing



LuTHieR wrote:
Quote:
Hi,
I have an HTML document and would like to split it in pages for
printing. It consist basically of many tables, and I would like that
when I print it the output will be one table per physical page. Is it
somehow possible? Thanks,
>
LuTHieR
Ok, I read the answer in previous posts, I did not found it before,
sorry.
Page-break-after and page-break-before will do the trick, thanks.

LuTHieR

David E. Ross
Guest
 
Posts: n/a
#4: Jul 14 '06

re: How to split an HTML page for printing


Rik wrote:
Quote:
LuTHieR wrote:
Quote:
>Hi,
>I have an HTML document and would like to split it in pages for
>printing. It consist basically of many tables, and I would like that
>when I print it the output will be one table per physical page. Is it
>somehow possible? Thanks,
>
CSS for printing:
>
table{
page-break-after: always;
}
>
Grtz,
Unfortunately, the various page-break properties do not work in some
current browsers. This is a CSS2.1 capability that either has not yet
been fully implemented or has not been correctly implemented.

For Mozilla browsers (Firefox, SeaMonkey), see
<https://bugzilla.mozilla.org/show_bug.cgi?id=132035>. Apparently,
Mozilla attention is shifting towards CSS3 capabilities -- despite the
uncertainty of when formal publication of the CSS3 specifications will
occur -- and not on finishing the implementation of CSS2.1 capabilities,
for which formal publication of the specifications is expected very soon.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
Closed Thread


Similar HTML / CSS bytes