Forum How do I...?

How do I prevent page breaks immediately after a heading?

flexera2016
I am using Prince Print with oXygen Author 18. I have added the "page-break-after:avoid!important" property to all 6 of the CSS heading styles for page "titles" (see below). When the PDF is produced, some page titles STILL appear at the bottom of the page. What can I do to avoid this?

*[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
page-break-after:avoid!important;
}

*[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
page-break-after:avoid!important;
}

*[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
page-break-after:avoid!important;
}

*[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
page-break-after:avoid!important;
}

*[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/title"] > *[class~="topic/title"] {
page-break-after:avoid!important;
}
mikeday
You may need to check the exact markup around/following the headings for cases where they are left at the bottom of the page.