Forum


Replies: 5   Views: 3024
Html table default cellmarges
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 Simco Nederland  · 05-01-2018 - 13:54

<table style="border:0px; float:right; width:100%; boder-spacing:0; border-collapse: collapse; text-align:right; margin:0; padding:0;" cellspacing="0" cellpadding="0">
        <tr valign="top" style="margin:0; padding:0;">
                <td style="margin:0; padding:0;">some data</td>
                <td style="margin:0; padding:0;">another data</td>
        </tr>
</table>

have something like this in my html template
when i create docx the table has cellmarginleft 0.19cm and right 0.19 cm top or bottom are 0.
how is it possible to remove those default cellmarges ?

other solution was to use p tags but it sets them on new lines despite display:inline css