Top Attribute | Internet Development Index |
Defines the position of the shape relative to the element above it in the flow of the page. Read/write String.
Applies To
Tag Syntax
<v:element style="top: expression">
Script Syntax
element.style.top="expression"
expression=element.style.top
Remarks
The Top attribute is similar to the standard HTML Top attribute for styles.
Units may be mapped to the parent element or may be in absolute units. This attribute may not be written out for shapes anchored inline.
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
Example
The top edge of the shape is 5 pixels below the object that precedes it in the flow of the page.
<v:rect id=myrect fillcolor="red" style="position:relative;top:5;left:1;width:20;height:20"> </v:rect>
Top Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)
兰溪市| 南雄市| 定远县| 临朐县| 宁武县| 东莞市| 济源市| 合川市| 内黄县| 乐昌市| 蒙阴县| 灌南县| 马公市| 天峨县| 建始县| 垣曲县| 连南| 海兴县| 赤城县| 澜沧| 淮北市| 承德市| 绥德县| 舒城县| 盐亭县| 额敏县| 来宾市| 昌都县| 察雅县| 马山县| 鹿邑县| 胶南市| 攀枝花市| 阿拉善右旗| 和平区| 龙泉市| 崇文区| 安阳市| 长阳| 肃宁县| 横山县|