Home > front end >  How to avoid card from splitting into multiple pages on print
How to avoid card from splitting into multiple pages on print

Time:08-16

How to avoid this issue, I want to avoid splitting the card into second pages. Thank you so much for your attention.

enter image description here

CodePudding user response:

if your pdf is generated from html, then you can use css control the page display. try add line in every page tail

<div style="break-after: always;"></div>

after this line, content will split to next page.

read doc here

CodePudding user response:

Try setting margin: auto, can you share your code for better understanding

  • Related