HTMLTableElement.width

The HTMLTableElement.width property represents the desired width of the table.

Syntax

HTMLTableElement.width =width;
varwidth =HTMLTableElement.width;

Where width is a string representing the width in number of pixels or as a percentage value.

Example

mytable.width = "75%";

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes Yes Yes Yes Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes ? Yes Yes Yes Yes ?

Specification

Document Tags and Contributors

Contributors to this page: fscholz, teoli, kscarfone, Sheppy, ethertank, RobG, Nickolay, Dria, JesseW
Last updated by: fscholz,