Margin-Left Attribute | Internet Development Index |
Specifies the left edge of the shape's containing rectangle relative to the shape anchor. Read/write String.
Applies To
Tag Syntax
<v:element style="margin-left: expression">
Script Syntax
element.style.marginleft="expression"
expression=element.style.marginleft
Remarks
The Margin-Left attribute is similar to the standard HTML Margin-Left attribute used with style sheets.
Note that marginleft is used instead of margin-left for scripting. Also note that if the position is absolute, the margin will not appear to change.
This property is used instead of Left for shapes in Microsoft Word and Microsoft Excel that are floating in a position relative to an anchor point.
Values include:
| Value | Description |
| Auto | Default position of an element in the flow of the page. |
| units | Default. 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. The default value is 0. |
| percentage | Value expressed as a percentage of the parent object's height. |
VML Standard Attribute
See Also
Example
The left margin is set to 25 pixels.
<v:rect id=myrect fillcolor="red" style="position:relative;top:1;left:1;width:20;height:20;margin-left:25px"> </v:rect>
Margin-Left Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)
铜川市| 黑龙江省| 南靖县| 本溪市| 顺昌县| 泸州市| 龙口市| 三台县| 环江| 根河市| 城口县| 霍邱县| 台湾省| 乌兰县| 岱山县| 枞阳县| 临汾市| 佛学| 前郭尔| 绥化市| 长垣县| 太仓市| 白山市| 达日县| 寿光市| 襄城县| 太原市| 安岳县| 上犹县| 巩留县| 忻城县| 巫山县| 辽中县| 玉屏| 明光市| 汉阴县| 淳安县| 普兰县| 勃利县| 铜梁县| 察哈|