Forum


Replies: 6   Views: 3041
Table align (html)
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 ajoudeh  · 01-03-2018 - 12:52

I tried your code. the table itself stay in left and the content align to right. how i can attached image to show you what i get?

$html = '<table border="1" width="400" align="right">
            <tbody>
                <tr width="600">
                    <td style="background-color: yellow">1_1</td>
                    <td rowspan="3" colspan="2">1_2</td>
                </tr>
                <tr width="600">
                    <td>Some random text.</td>
                </tr>
                <tr width="600">
                    <td>
                        <ul>
                            <li>One</li>
                            <li>Two <b>and a half</b></li>
                        </ul>
                    </td>
                </tr>
                <tr width="600">
                    <td>3_2</td>
                    <td>3_3</td>
                    <td>3_3</td>
                </tr>
            </tbody>
        </table>';
        $docx->embedHTML($html);
        $docx->createDocx('Test');

 

PHPdocX 4.5

and trying PHPdocX 5.5 same issue

Thanks