MDN self-hosted library · e01.org

HTMLTableElement: width property

HTML DOM

Open notebook · 1 cells web-api-instance-property upstream source

HTML DOM

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

myTable.width = "75%";

Specifications

Browser compatibility