Position Attribute | Internet Development Index |
Defines the type of positioning used to place an element. Read/write String.
Applies To
Tag Syntax
<v:element style="position: expression">
Script Syntax
element.style.position="expression"
expression=element.style.position
Remarks
The Position attribute is similar to the standard HTML Position attribute used with style sheets.
Values include:
| Value | Description |
| static | Default. The element is positioned according to the normal flow of the page. The Top and Left attributes are ignored. If the object is anchored inline, which only happens in Microsoft Word, this value is used. |
| absolute | The element is positioned relative to the parent, using the Top and Left attributes. This value is used by Microsoft Word and Microsoft Excel floating objects, and Microsoft PowerPoint slides. |
| relative | The element is positioned according to the normal flow of the page, but the Top and Left attributes are used. The overlap of overlapping elements is governed by the Z-Index attribute. |
VML Standard Attribute
Example
The position of the rectangle is displayed using the relative style.
<v:rect id=myrect fillcolor="red" style="position:relative;top:1;left:1;width:20;height:20"> </v:rect>
Position Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)
伊通| 宝鸡市| 女性| 榆林市| 萍乡市| 石柱| 桃源县| 太谷县| 宁强县| 遂宁市| 定日县| 岢岚县| 中西区| 潜山县| 远安县| 巧家县| 昌平区| 延长县| 临漳县| 包头市| 农安县| 北宁市| 嘉善县| 潍坊市| 临猗县| 大港区| 西林县| 宣汉县| 新乡县| 涟水县| 广元市| 顺平县| 东至县| 平果县| 叶城县| 万盛区| 云和县| 棋牌| 宁安市| 神农架林区| 彭阳县|