Margin-Right Attribute | Internet Development Index |
Specifies the right edge of the shape's containing rectangle relative to the shape anchor. Read/write String.
Applies To
Tag Syntax
<v:element style="margin-right: expression">
Script Syntax
element.style.marginright="expression"
expression=element.style.marginright
Remarks
The Margin-Right attribute is similar to the standard HTML Margin-Right attribute used with style sheets.
Note that marginright is used instead of margin-right for scripting. Also note that if the position is absolute, the margin will not appear to change.
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 right margin is set to 25 pixels.
<v:rect id=myrect fillcolor="red" style="position:relative;top:1;left:1;width:20;height:20;margin-right:25px"> </v:rect>
Margin-Right Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)
城固县| 遵义市| 边坝县| 亚东县| 广西| 都兰县| 始兴县| 海晏县| 福建省| 新巴尔虎左旗| 晋宁县| 隆安县| 清镇市| 出国| 康乐县| 阿坝| 南宁市| 措美县| 永吉县| 增城市| 阜新市| 邵阳县| 桐城市| 邮箱| 洪湖市| 南靖县| 阿克| 凤山市| 江油市| 宜黄县| 额济纳旗| 盖州市| 什邡市| 隆回县| 南木林县| 延川县| 资中县| 鹤壁市| 华亭县| 海城市| 米脂县|