Forum


Replies: 6   Views: 4199
Trying to keep on the same page with html: text and image with breaks between
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by wcalhoun  · 20-08-2015 - 11:03

But I want the block to stay together, ie I don't want the first line of text on one page and the rest of it on the next page. I tried using the page-break-after: avoid in a div with p's inside but the only way it seems to work is by using page-break-after: avoid on a p. So how can I keep the block together but also keep everything on their own lines?