HTMLTableElement: width property
Deprecated
Avoid using this feature in new projects. Some table styling attributes have no effect. They are superseded by CSS. This feature may be a candidate for removal from web standards or browsers.>
The HTMLTableElement.width property represents the
desired width of the table.
Value
A string representing the width in number of pixels or as a percentage value.
Examples
js
myTable.width = "75%";
Specifications
| Specification |
|---|
| HTML> # dom-table-width> |