We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Table Allignment Issue

Hello,
Please let me know that how can change table allignment left to center using html code.
as I am using below code to create a table.

and want to change table property left to center with 0 left indent.

@RiteshK10 You can use HTML like this to make the table to be imported with center alignment:

<html>
<body>
    <div>
        <div style="text-align:center">
            <table style="margin-right:auto; margin-left:auto;">
                <tr>
                    <td>test</td>
                    <td>test</td>
                    <td>test</td>
                </tr>
                <tr>
                    <td>test</td>
                    <td>test</td>
                    <td>test</td>
                </tr>
                <tr>
                    <td>test</td>
                    <td>test</td>
                    <td>test</td>
                </tr>
            </table>
        </div>
    </div>
</body>
</html>