A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/attributes/cellPadding below:

cellPadding ยท WebPlatform Docs

cellPadding Summary

Specifies the space, in pixels, between the cell wall and the cell content. Not supported in HTML5. Use CSS.

The *table* element cellpadding attribute is not supported in HTML5. Use CSS instead.

The cellpadding attribute specifies the space between each cell stroke. Value has to be a number, and is interpreted as a size in pixels.

Note: Do not confuse this with the cellspacing attribute, which specifies the space between cells.

Tip: It may be better to NOT specify a cellpadding, and use CSS to apply padding instead.

Examples

Here is a table where we use the cellpadding and border table attributes.

<table border="1" cellpadding="10">
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>0</td>
  </tr>
</table>
Related specifications
Document Object Model (DOM) Level 1, Section 2.5.5
Recommendation
HTML 4.01 Specification, Section 11.3.3
Recommendation
See also Related pages Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4