Contents Index Topic Contents | ||
Previous Topic: visited Next Topic: z-index |
width
Description
Specifies the width of the element. DIV and SPAN cannot be positioned unless a width is provided. Percentage values are based on the width of the parent element.
Syntax
{ width: length | percentage | auto}
Remarks
The width attribute, like all other CSS attributes, specifies a string value. When scripting the width property, use either the pixelWidth or posWidth property for numeric manipulation of a width value.
This attribute is not inherited.
Applies To
APPLET, DIV, EMBED, FIELDSET, HR, IFRAME, IMG, INPUT, INPUT type=button, MARQUEE, OBJECT, SELECT, SPAN, TABLE, TEXTAREA
Scripting Property
See Also
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.