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.)
丹东市| 池州市| 全椒县| 信丰县| 霍城县| 吉林市| 墨江| 翼城县| 长泰县| 南阳市| 正安县| 花莲县| 旌德县| 措美县| 大足县| 荔波县| 亚东县| 武宣县| 石首市| 广昌县| 正阳县| 双城市| 乌兰浩特市| 城口县| 田阳县| 界首市| 霸州市| 老河口市| 繁峙县| 大新县| 南京市| 谷城县| 龙口市| 日喀则市| 云和县| 班玛县| 勃利县| 册亨县| 扶风县| 新巴尔虎右旗| 昌吉市|