Sets or retrieves the width of the object.
Syntax
| HTML | <element width="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: Variant
width
-
Integer that specifies the width of the object in pixels.
percentage
- String that specifies an integer value followed by a %. The value is a percentage of the width of the parent object.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
See also
Build date: 11/28/2012