View Single Post
Old 03-20-2022, 01:48 PM   #4
AKmatiAK
Junior Member
AKmatiAK began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2022
Device: none
wkhtml lacks support of this attributes. I found workaround here: stackoverflow

paste this code instead and it will work for all headers:

Quote:
h1, h2, h3, h4, h5, h6 {
page-break-inside: avoid;
}
h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
content: "";
display: block;
height: 100px;
margin-bottom: -100px;
}
AKmatiAK is offline   Reply With Quote