Style right Property
Style right Property
The right property is used to either set or return the right position of a positioned element. It is used for specifying the right positions of elements including padding, margins, and border.
Syntax:-
Its syntax is:- object.style.right OR object.style.right = auto | length | % | initial | inherit
Return:-
Its return is:- string having right position of a positioned element
Further Explanation:-
Value | Description |
---|---|
auto | Allow browser to set right position. |
length | Defines the right position in length units. |
% | Sets the right position in % of the height of the parent element |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |