How to avoid the page break properly
Posted: Wed Mar 13, 2019 5:46 pm
Hi!
I've defined a CSS rule for 2-nd level heading as the following:
*[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
page-break-before:always;
}
and it works.
Now, I have one 2-nd level topic I want to keep on the same page with it's senior one.
I prepared
*[outputclass ~= "no_page_break_before"] > * {
page-break-before:avoid;
}
and placed it into bookmap:
</chapter>
<chapter href="concept/c_00_features.dita">
<topicref outputclass="no_page_break_before" href="concept/c_nn_activities_and_functions.dita"/>
<topicref href="concept/c_nn_sw_and_hw_requirements.dita"/>
</chapter>
but page break still exists.
What is wrong?
Thanks,
Dmitry
I've defined a CSS rule for 2-nd level heading as the following:
*[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
page-break-before:always;
}
and it works.
Now, I have one 2-nd level topic I want to keep on the same page with it's senior one.
I prepared
*[outputclass ~= "no_page_break_before"] > * {
page-break-before:avoid;
}
and placed it into bookmap:
</chapter>
<chapter href="concept/c_00_features.dita">
<topicref outputclass="no_page_break_before" href="concept/c_nn_activities_and_functions.dita"/>
<topicref href="concept/c_nn_sw_and_hw_requirements.dita"/>
</chapter>
but page break still exists.
What is wrong?
Thanks,
Dmitry