Acrobat convert html to pdf
I am using Acrobat Standard 2020 to convert/combine multiple html files into a pdf. These html files contain both text and images. The problem is that the resulting pdf has the images split on two pages, like this:

How to fix this?
My first question is if Acrobat is reading the css file? Or it completely ignores the css file?
Second question is, if it is reading also the css file what should I change in the css file?
Inside the css there are blocks like this
.section_img {
text-align: center;
padding-top: .25em;
margin-bottom: 0em;
page-break-after:always;
}
I tried also princexml to convert but it has a similar problem (while it does not split images on two pages, it truncates them)
