Back to Content

HTMLTableElement: width property

files/en-us/web/api/htmltableelement/width/index.md

latest343 B
Original Source

{{APIRef("HTML DOM")}} {{Deprecated_Header}}

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

{{Specifications}}

Browser compatibility

{{Compat}}