Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TR page-break-inside: avoid

0 views
Skip to first unread message

Frans Tromp

unread,
Jan 10, 2002, 3:46:52 AM1/10/02
to
Hi all,

In IE 5.0 printing tables caused page breaks to occur exactly between table
rows. If a row (with multiple lines of text) fitted completely on a page it
was printed otherwise it was printed on the next page. This behavior was
automatic and required no styles or TABLE, TR or TD properties.

In IE 5.5 page breaks occur inside table rows: part of the row (a few lines)
is shown on
the first page and the rest is shown on the next page.

------------------
| example |

<page break here>

| of this |
| behavior |
-----------------

My questions are:
- Is this a known problem?
- What is the solution? Styles like "TR {page-break-inside: avoid}" or "TR
{page-break-inside: avoid}" don't seem work.

Greetings, Frans


Brett Merkey

unread,
Jan 11, 2002, 1:39:58 PM1/11/02
to
"Frans Tromp" <f.t...@chello.nl> wrote in message
news:e1vXSNbmBHA.956@tkmsftngp05...

> In IE 5.0 printing tables caused page breaks to occur exactly between
table
> rows. If a row (with multiple lines of text) fitted completely on a page
it
> was printed otherwise it was printed on the next page. This behavior was
> automatic and required no styles or TABLE, TR or TD properties.
> In IE 5.5 page breaks occur inside table rows: part of the row (a few
lines)
> is shown on
> the first page and the rest is shown on the next page.
> My questions are:
> - Is this a known problem?
> - What is the solution? Styles like "TR {page-break-inside: avoid}" or
"TR
> {page-break-inside: avoid}" don't seem work.


In my testing, even IE5 exhibited this behavior. The styles you mention
are not support by any Windows version of IE.

Even forcing page breaks (ex. page-break-after: always) does not work
*within* tables. Yes, this is pretty stupid, but nothing is to be done
until
Microsoft hires some real development managers.

For the time being, you must break up the tables or use IE styles for
repeating headers and footers in tables which forces IE to break up
rows in a more rational manner.

I explain this method in a Windows downloadable tutorial at:
http://web.tampabay.rr.com/bmerkey/examples/swissarmy.exe

Brett
http://home.tampabay.rr.com/bmerkey/

0 new messages