In this chapter, we are going to learn about CSS Position property.
Position Property used to position the element.
The position property has five values
Static - is a default value of elements, these elements would not be affected by top, right, bottom left values.
Relative - These elements positioned normal and these elements are affected by top, right, bottom,left
Absolute - These elements positioned to the parent relative elements, this element is affected by top, right, bottom, left
Fixed - These elements positioned to the viewport
Sticky - The position of This element based on the user scroll
Position Property used to position the element.
The position property has five values
- Static
- Relative
- Absolute
- Fixed
- Sticky
Static - is a default value of elements, these elements would not be affected by top, right, bottom left values.
Relative - These elements positioned normal and these elements are affected by top, right, bottom,left
Absolute - These elements positioned to the parent relative elements, this element is affected by top, right, bottom, left
Fixed - These elements positioned to the viewport
Sticky - The position of This element based on the user scroll
Comments
Post a Comment