Hi,
Please look at the sample.html attached in this thread. In sample.html you can see two DIVs; one with yellow background and another with pink background. I do not want any page break in between these two DIVs. so I have added page-break-after: avoid; for yellow DIV & page-break-before: avoid; for pink DIV. But it did not work for me. Can you help me to avoid page break inbetween those two divs. It is ok for me, if pink DIV hides some of its content if they do not fit in the page; but I do not want pink DIV to move completely to next page.
Thanks!
Please look at the sample.html attached in this thread. In sample.html you can see two DIVs; one with yellow background and another with pink background. I do not want any page break in between these two DIVs. so I have added page-break-after: avoid; for yellow DIV & page-break-before: avoid; for pink DIV. But it did not work for me. Can you help me to avoid page break inbetween those two divs. It is ok for me, if pink DIV hides some of its content if they do not fit in the page; but I do not want pink DIV to move completely to next page.
Thanks!