Forum


Replies: 1   Views: 2100
Table border issues, collapse does not work
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 admin  · 24-02-2020 - 15:29

Hello,

We have run your sample and then opened the output with MS Word 2007 to MS Word 2016 and in all cases, border-collapse works perfectly. The included sample Core/embedHTML/sample_1.php illustrates using this option.

LibreOffice and OpenOffice don't handle cell margins as OOXML (DOCX standard) sets. To get the same output you need to apply cell borders using CSS styles or apply a custom table style when importing HTML.

Regards.