I want to apply the page-break-inside:avoid
property to all p
elements that do not have a ul
element.
p {
margin-top: 4pt !important;
margin-bottom:6pt !important;
page-break-inside:avoid;
orphans: 4;
widows: 2;
}
<p>Hello text </p>
<p>hello <ul>
<li>list </li>
</ul>
I want to exclude the second paragraph. Is it possible through CSS? I am looking for a CSS solution.
...
...
...`
– j08691 Jan 08 '20 at 17:39