JSSTag.width (Property)

This is the width of an object.


CSS level - 1
JavaScript - 1.2
Netscape - 4.0
Property/method value type:String primitive
JavaScript syntax:NmyJSSTag.width
NmyJSSTag.width = aWidth
CSS syntax:width: aWidth
HTML syntax:<... WIDTH="...">
Argument list:aWidthA CSS length value

The JSSTag.width property corresponds to the width CSS property.

This property can be used to control the width of an object on the screen. The value can be specified as a length measured in units, a percentage of the containing block the element is located in or an "auto" value that lets the browser compute the size.

The default value for this property is "auto".

This value is not inherited from its parent container element.


See also:JSSTag.height, style.width