Menu

padding in table cell

Help
2015-05-08
2015-05-08
  • Marcos Sanz

    Marcos Sanz - 2015-05-08

    Hello!

    I have the following code:

            $html = <<<EOD
                <style>
                    td.firstcolumn{
                        width:42mm;
                        text-align:right;
                        padding-right:5px;
                    }
                    td.secondcolumn{
                        border: 0.2mm solid blue;
                        width: 14mm;
                        text-align: center;
                    }
                </style>
                <table>
                    <tr>
                        <td class="first column">Hours:</td>
                        <td class="secondcolumn">8</td>
                    </tr>
                                </table>
    

    EOD;

            $this->SetAbsXY(224, 27);
            $this->writeHTML($html);
    

    The problem i have is that the padding-right of the first column is not working. So, is there any other option to do the same?

    Thank you!
    Regards

     
  • Simon

    Simon - 2015-05-08

    You have a space in your class name on the table cell. Does it work when you remove it?

     
  • Marcos Sanz

    Marcos Sanz - 2015-05-08

    No, that blank is thanks the auto correct in Safari...

     

Log in to post a comment.