heightheight*
*Contents  *Index  *Topic Contents
*Previous Topic: height
*Next Topic: height

height

Description

Sets or retrieves the height of the element.

Syntax

object.style.height[ = height]

Remarks

The value of this read/write property is a string consisting of a floating-point number and a units designator, as described for cascading style sheets.

To carry out operations on the numeric value of this property, use pixelHeight or posHeight.

Percentage values are based on the width of the parent element. When scripting the height property, use either the pixelHeight or posHeight property for numeric manipulation of a height value.

For more information on how to access the dimension and location of elements on the page through the document object model, see Measuring Element Dimension and Location.

Applies To

HTML Tags APPLET, DIV, EMBED, FIELDSET, HR, IFRAME, IMG, INPUT, INPUT type=button, MARQUEE, OBJECT, SPAN, TABLE, TEXTAREA
Scripting style

CSS Attribute

height


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.