+ 1
can somebody help me with CSS position:relative and position:absolute ? I don't get it
3 Answers
+ 7
relative:-
An element with position: relative; is positioned relative to its normal position.
Setting the top, right, bottom, and left properties of a relatively-positioned element
will cause it to be adjusted away from its normal position. Other content will not be
adjusted to fit into any gap left by the element.
absolute:-
An element with position: absolute;
is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed).
for more informations you can visit this link
https://qph.ec.quoracdn.net/main-qimg-9b646ce74bb42a04de3c6928cf04bb45
+ 3
that helped.. thanks Elizabeth!
+ 2
Link helped a lot. Thank you.