Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mPDF page-break-inside avoid not working

Can somebody tell me why mPDF doesn't accept this code to avoid page break inside my div

    <div style="page-break-inside:avoid !important;">
       multi
       line
       content
    </div>
like image 839
Manic Depression Avatar asked Mar 18 '14 08:03

Manic Depression


1 Answers

may be, set in your extension mpdf -> config.php and set

tableMinSizePriority

to be false
like this
$this->tableMinSizePriority = false;

like image 125
Yanuar Ihsan Avatar answered Nov 15 '22 01:11

Yanuar Ihsan