leora leora - 10 months ago 90
HTML Question

Cellpadding in one html table cell

Is it possible to have cell padding in just one cell versus the whole html table?

Answer Source

Just style the cell using CSS:

<table border='1'>
    <tr>
    <td style="padding: 50px;">cell1</td>
    </tr>
    <tr>
    <td>cell2</td>
    </tr>
</table>