Answers for "html table cellpadding"

3

Set table cellpadding and cellspacing in CSS

td { 
    padding: 10px;  /* cellpadding */
}

table { 
    border-spacing: 10px;   /* cell spacing */
    border-collapse: separate;
}
Posted by: Guest on July-06-2020
9

table html tages

<table>
  <tr> <!-- This is the first row -->
    <th>This is the heading</th>
    <th>Next heading to the right</th>
  </tr>
  <tr> <!-- This is the second row -->
    <td>This is where the table data goes</td>
    <td>This is the second columns data</td>
  </tr>
</table>
Posted by: Guest on April-24-2020
0

none

<table>
  <tr> <!-- This is the first row -->
    <th>This is the heading</th>
    <th>Next heading to the right</th>
  </tr>
  <tr> <!-- This is the second row -->
    <td>This is where the table data goes</td>
    <td>This is the second columns data</td>
  </tr>
</table>
Posted by: Guest on April-24-2020

Browse Popular Code Answers by Language