+ 1
What does the value 'absolute' and 'relative' do in position property of css
css property
2 Antworten
+ 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
+ 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