+ 1

What does the value 'absolute' and 'relative' do in position property of css

css property

3rd May 2018, 4:56 AM
Suman Stha
Suman Stha - avatar
2 Answers
+ 4
absolute:its positioned based on parent element relative: positioned in relativity to its top and left values fixed: positioned in relativity to the body.Does not scroll with the page.its fixed
3rd May 2018, 5:19 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 1
It tells how the element will position itself in the parent element. Relative or absolute. But you can also use fixed. For more explanation: https://www.w3schools.com/css/css_positioning.asp
3rd May 2018, 4:59 AM
***
*** - avatar