The
HTMLTableElement.width
property represents the desired width of the table.SyntaxEdit
HTMLTableElement.width = width; var width = HTMLTableElement.width;
Where
is a string representing the width in number of pixels or as a percentage value.ExampleEdit
mytable.width = "75%";
SpecificationEdit
- W3C DOM 2 HTML Specification HTMLTableElement .width