It seems that page-break-after only works on block (and possibly inline-block) elements. I have some non-ideal HTML like this:
Now I'd like to make a rule such that there was no page break after this "heading" but it's hard. I had limited success with:
It didn't stop the page break but I could style things like color with this selector. Unfortunately it would also pick up things like:
(ie the bolded "no" would be selected).
I can't really change this bold tag to display: block so I"m a bit stuck.
Suggestions? Is this a bug?
<li><b>RESULTS</b>
<table>
...
Now I'd like to make a rule such that there was no page break after this "heading" but it's hard. I had limited success with:
li > b:first-child {
page-break-after: avoid;
}
It didn't stop the page break but I could style things like color with this selector. Unfortunately it would also pick up things like:
<li>You have <b>no</b> results...
(ie the bolded "no" would be selected).
I can't really change this bold tag to display: block so I"m a bit stuck.
Suggestions? Is this a bug?