Skip to content

Can't add cellspacing/cellpadding or padding to Table with AddHtml #1701

Closed
@danilocarva9

Description

@danilocarva9

Describe the Bug

Guys, I'm using AddHtml to render a table, but I can't render with cellspacing or cellpadding or even when I add "style='padding: 10px'". Is there a way to have a padding between ? thanks.

Steps to Reproduce

$Html .= '<table border="1" cellpadding="5" cellspacing="5">';
$Html .= '<thead>
                        <tr style="background-color: #AACCFF;">
                            <th style="padding: 15px;"><b>CPF/CNPJ</b></th>
                            <th style="padding: 15px;"><b>Investigado</b></th>
                            <th style="padding: 15px;"><b>Data Inicio</b></th>
                            <th style="padding: 15px;"><b>Data Final</b></th>
                        </tr></thead><tbody></table>';
  • PHP Version: 7
  • PHPWord Version: v0.16.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions