width

abstract var width: Width?(source)

The width CSS property sets an element's width. By default, it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.

Syntax: auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)

Initial value: auto

| Chrome | Firefox | Safari |  Edge  |  IE   |
| :----: | :-----: | :----: | :----: | :---: |
|   1    |    1    |   1    |   12   |   4   |

See also