I'd like to apply different styles on pages where a long <div> spreads. Let say the <div> starts at page 2 and ends at page 4. I'd like pages #2, #3, #4 to have different styles.
So far I haven't managed to do that with named pages. What I have tried :
Cause a page break before #myDiv
Named page style not applied
Cause a page break before #myDiv
Anyone has an idea on how to achieve that ?
PS : I've trie to insert "markers" divs in my longDiv and apply the "page: myDiv" to them but either it doesn't work, either it inserts page break after/before each marker div.
So far I haven't managed to do that with named pages. What I have tried :
@page longDiv {
@bottom-right {
content: normal;
}
}
div#myDiv {
page: longDiv;
}
Cause a page break before #myDiv
@page longDiv {
@bottom-right {
content: normal;
}
}
div#myDiv {
page: longDiv auto;
}
Named page style not applied
@page longDiv:first {
@bottom-right {
content: normal;
}
}
div#myDiv {
page: longDiv auto;
prince-page-group: start
}
Cause a page break before #myDiv
Anyone has an idea on how to achieve that ?
PS : I've trie to insert "markers" divs in my longDiv and apply the "page: myDiv" to them but either it doesn't work, either it inserts page break after/before each marker div.