leora leora - 2 months ago 8
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

Just style the cell using CSS:

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