css right attribute
Translation results:
right
英[raɪt] 美[raɪt]
adv.immediately, immediately; to the right, right; appropriately; always
adj. Correct; appropriate; right; good, normal
n. right; right; correct, just; right hand
vt. correct; straighten, make it right ; Arrangement; Compensation
vi. (Ship, etc.) Restore to stability
css right attributesyntax
Function:right attribute specifies the right edge of the element. This property defines the offset between the right margin edge of the positioned element and the right edge of its containing block.
Description: For static elements, it is auto; for length values, it is the corresponding absolute length; for percentage values, it is the specified value; otherwise, it is auto. For relatively defined elements, left always evaluates to right.
Note: All major browsers support the right attribute. The attribute value "inherit" is not supported in any version of Internet Explorer (including IE8).
css right attributeexample
<html> <head> <style type="text/css"> img { position:absolute; right:50px; } </style> </head> <body> <h1>This is a heading</h1> <img src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" /> </body> </html>
Click the "Run instance" button to view the online instance