function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vinod kumar 364vinod kumar 364 

In my Visual-force PDF Page table is not breaking properly

User-added image
please look at my above Image it shows how my page is breaking on my Visualforce PDF page, Here I want my entire 3rd row should go to next page without breaking in the middle.

So please find the code related to above concern:
<table style="font-size:80%;*page-break-inside:avoid*" border="1px" cellpadding="0" cellspacing="0" height="100%" width="100%​">

 
AmulAmul
use CSS
AmulAmul
Read this
https://www.w3schools.com/cssref/pr_print_pageba.asp
vinod kumar 364vinod kumar 364
Thanks for the reply!
I tried with the with the below options it's not working?
page-break-inside:avoid
page-break-inside:auto
page-break-inside:always
page-break-after:avoid
page-break-after:always
Gaurish Gopal GoelGaurish Gopal Goel
Hi Vinod,

Read this article to generate a nice PDF from visualforce with repeated header and footer - http://www.gaurishgoel.com/2018/01/visualforce-page-pdf-header-footer.html 

Its an advice that you should not use table,td,tr. Latest coding standards suggests the use of <div> instead of <table>. Div gives us more flexibility and responsiveness which is very criticial these days due to mobile devices.

If this answer solves your problem then mark it as the solution to help others. Thanks.
NagendraNagendra (Salesforce Developers) 
Hi Vinod,

Sorry for this issue you are encountering.

You need to post more of your Visualforce page code. It seems like you are using standard HTML and CSS features. Have you searched elsewhere for issues with the standard features you are using? 

Regards,
Nagendra