Justin, I thought it was page-break-after....
-mark Mark Kruger - CFG CF Webtools www.cfwebtools.com www.coldfusionmuse.com O: 402.408.3733 x105 E: [email protected] Skype: markakruger -----Original Message----- From: Justin Scott [mailto:[email protected]] Sent: Sunday, November 27, 2011 2:22 PM To: cf-talk Subject: cfdocument and page-break-inside: avoid I'm curious if anyone has found a way to prevent content blocks converted to PDF with cfdocument from breaking across pages (e.g. a div with content that could be a couple of lines or 30 lines, but I'd like to keep it all together on the same page). I've tried applying the "page-break-inside: avoid" CSS element but it appears to have no effect. Research on the topic has not wielded anything practical. Some suggest encapsulating the content with cfsavecontent and then counting line breaks to estimate the element height and further, keep track of how much has been output since the beginning or last page break to determine if a manual page break should be inserted. I'd like to find a more elegant solution using existing CSS elements if possible. Any thoughts from PDF-generating ninjas out there? -Justin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348885 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

