Forum How do I...?

Widows, orphans and vertical justification.

alx13
Hello Mike,

Is there a way to vertically justify text on page with orphans and widows set to 2, so the text frames on different pages have same height?

What is the behaviour of "line-stacking-strategy" CSS property? Can it be used for baseline alignment of text?

Is it possible to not print footer on last page of e.g. chapter?
I have tried to use hack like:

div.chapter > p:last-of-type:after {
position: absolute;
bottom: -2cm;
width: 10cm;
background: white;
height: 2cm;
left: 3cm;
z-index: 1000;
}

to put a white rectangle over footer, but in pdf footer have higher z-index than any main flow elements. May be it's possible to adjust z-index of headers an footers?

Thank you!
mikeday
Is there a way to vertically justify text on page with orphans and widows set to 2, so the text frames on different pages have same height?

No, there is no mechanism in CSS for this. Maybe one day.

What is the behaviour of "line-stacking-strategy" CSS property? Can it be used for baseline alignment of text?

Yes it can help with this, by setting it to grid-height as described in the spec. Things can get complicated when variable height images are involved, though.

Is it possible to not print footer on last page of e.g. chapter?

You could flow a block to the footer at the beginning of every chapter, and flow an empty block at the end of the chapter. Trying to physically draw over the footer sounds a little fragile.