Min-height causes page break
Posted: Tue Oct 20, 2020 7:50 pm
Hello,
I am trying to apply a minimum height to a topic element, using the following css:
Here is the result (showing pages 1 and 2):
As you can see, there is plenty of room on the first page for "Topic 4," yet it gets pushed to the second page. I do not run into the problem if I use "height" instead of "min-height":
Is this just a bug with min-height or am I doing something wrong?
Thanks,
Jonathan
I am trying to apply a minimum height to a topic element, using the following css:
Code: Select all
@page {
padding-top:0em;
padding-bottom:0em;
size: us-letter;
margin: 1in;
}
.topic {
border: 1px solid red;
margin: 0;
min-height: 2in;
}
Thanks,
Jonathan