Width(Function)

Gets or sets the width of the element. Setting the width is subject to the normal styling rules of the browser. An element with a display style of "inline" will ignore the width  that is assigned, where as an element with the display style of "block" will honor it. Note: Width is different from LayoutWidth and AttributeWidth. AttributeWidth refers to the width set in the attributes of the element tag as it often has different rule sets where as LayoutWidth returns the full box model area taken up by the element. All Width values returned and set are in pixels. When setting the Width, the calling element is returned so that property calls can be chained.

 

Overloads

Width() : Number – Gets the set width, in pixels, of the element.

Width(Number pixels) : Element -  Sets the width, in pixels, of the element, provided it has the appropriate display style.

Last edited Jan 27, 2011 at 11:52 PM by dahrkdaiz, version 1

Comments

No comments yet.