HTML DOM Style Object Position Property

What are all the alignment position properties available in the dom style object?

Explanation

HTML DOM Style Object Position Property:
The position property is used to set the position of the css elements at runtime. The position properties of the style object were listed in the table given below:
syntax:
object.style.property=value
Alignment Property Description values
bottomspecifies how far the bottom edge of an element is above/below the bottom edge of the parent elementauto
%
length
leftspecifies how far the left edge of an element is to the right/left of the left edge of the parent element.auto
%
length
positionplaces an element in a static, relative, absolute or fixed positionstatic
relative
absolute
fixed
rightspecifies how far the right edge of an element is to the left/right of the right edge of the parent elementauto
%
length
topspecifies how far the top edge of an element is above/below the top edge of the parent elementauto
%
length

Ask Questions

Ask Question