HTML CSS Reference/CSS Attributes and Javascript Style Properties/right
Содержание
"right" Example
<source lang="html4strict">
<html> <body>
<img id="myImg" src="http://www.wbex.ru/style/logo.png" width=74 height=100" style="position:relative">
<input type="button"
value="Set right property to 100" onclick="myImg.style.right=100">
<input type="button"
value="Restore image position" onclick="myImg.style.right=0">
</body> </html>
</source>
"right" is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Applied_To |<a> <address> | | |<applet> |
| || | |<button>| | |
| || | |currentStyle
| | | <dir> | |
| |<fieldset> | | |<form> <hn> |
| |
|| |<iframe> <img> | | |<input type="button"> <input type="checkbox"> | | |<input type="file"> <input type="image"> | | |<input type="password"> <inputtype="radio"> | | |<input type="reset"> <input type="submit"> | | |<input type="text"> <isindex> | | | <label> |
| |<legend>| | |<listing> <marquee> | | |<menu> <object> | | |
| | |
runtimeStyle | | || | |<select> | | || | | style | | | | | |<textarea> | | | | | |
| | |<xmp> | +----------------+--------------------------------------------------------------+ </source>
"right" Possible Values
<source lang="html4strict"> Possible Values auto The default; regular HTML position length A floating-point number followed by a unit designator percentage Percentage of the parent element width
</source>
"right" Syntax and Note
<source lang="html4strict"> Note: Set the right edge position, including any padding, border, margin, and is relative to adjacent elements. Syntax:
element { right: value } elementID.style.right = "value" document.all.elementID.style.right = "value" // IE only
</source>