Height Attribute Home
Height Attribute

Specifies the height of the shape. Read/write. String.

Applies To

Shape

Tag Syntax

<v:element style="height: expression">

Script Syntax

element.style.height="expression"

expression=element.style.height

Remarks

The Height attribute is similar to the standard HTML Height attribute for styles.

Units may be mapped to the parent element or may be in absolute units.

Values include:

Value Description
Auto Default position of an element in the flow of the page.
units A number with an absolute units designator (cm, mm, in, pt, pc, or px) or a relative units designator (em or ex). If no units are given, pixels (px) is assumed.
percentage Value expressed as a percentage of the parent object's height.

VML Standard Attribute

See Also

Units

Example

The height of the shape is set to 30.

   <v:rect id=myrect fillcolor="red"
   style="position:relative;top:1;left:1;width:20;height:30">
   </v:rect>

Height Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View