You need to sign in to do that
Don't have an account?
Fabien Schiettecatte
Using page-break-inside: avoid; on Visualforce renderAs="pdf" page
When I used page-break-inside: avoid; on a <div> contianer in a Visualforce renderAs="pdf" page, it doesn't work as expected. It doesn't have any effect.
What I want to achieve is, when an element is spread out between 2 pages of the pdf, it is automatically put on the next page of the pdf, as if it would have page-break-before: always;.
Does anyone know of this bug, is there a workaround or did someone have good results using page-break-inside: avoid;?
What I want to achieve is, when an element is spread out between 2 pages of the pdf, it is automatically put on the next page of the pdf, as if it would have page-break-before: always;.
Does anyone know of this bug, is there a workaround or did someone have good results using page-break-inside: avoid;?
Any of the following option should work
<div page-break-inside: avoid;">
<apex:outputPanel layout="block" style="page-break-inside: avoid;">