Posted by Craig Taylor on 06/23/07 19:35
On Jun 21, 5:52 pm, "Jukka K. Korpela" <jkorp...@cs.tut.fi> wrote:
> Scripsit Craig Taylor:
>
> > Whenever I try to use the following CSS rule nothing happens:
> > TD {
> > page-break-before: always
> > }
>
> Maybe we shoudn't be surprised, since by CSS specs, the property applies to
> block-level elements only.
>
> > If I change the TD to a TR then my table breaks on every line like it
> > should.
>
> So why don't you do that? Why would you start a new page before a table cell
> but not before the row to which the cell belongs.
The first paragraph of my message stated the reasons why: I have a
table which is bigger than print size both horizontally and
vertically.
>
> TR isn't block-level either, so this is somewhat puzzling. Maybe we aren't
> supposed to start a new page befoe a row. Maybe we should try putting a
> block element inside a cell and assign the CSS rule to it.
So I've found out - The only work-arounds that I've been able to find
is to have a series of vertical tables aligned next to each other and
specify it to break before each table ... not the greatest way to do
it but untill CSS v10 comes out (joke) it'll have to do.
>
> --
> Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
[Back to original message]
|