Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
3 results across 6 corpora for HTMLTableElement: cellPadding property.
Developer library 3
` ` HTML table element
td> </tr> <tr> <th scope="row">Permitted ARIA roles</th> <td>Any</td> </tr> <tr> <th scope="row">DOM interface</th> <td>HTMLTableElement</td> </tr> </tbody> </table> ## Specifications ## Browser compatibility ## See also - [Learn: HTML table basics](/docs/Learn_web_development/Core/Structuring_content/HTML_table_basics) - caption, col, colgroup, tbody, td, tfoot,
HTMLTableElement
HTML DOM The **`HTMLTableElement`** interface provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. ## Instance properties _Inherits properties from its parent, HTMLElement._ - HTMLTableElement.caption - : An HTMLTableCaptionElement representing the first c
HTMLTableElement: cellPadding property
HTML DOM The **`HTMLTableElement.cellPadding`** property represents the padding around the individual cells of the table. ## Value A string representing pixels (e.g., `"10"`) or a percentage value (e.g., `"10%"`). When set to the `null` value, that `null` value is converted to the empty string (`""`), so `elt.cellPadding = null` is equivalent to `elt.cellPadding = ""`. ## Examples ```js // Set cell padding to 1