+ 1

can somebody help me with CSS position:relative and position:absolute ? I don't get it

26th Oct 2017, 2:08 PM
Sushant Kulkarni
Sushant Kulkarni - avatar
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
26th Oct 2017, 2:29 PM
ElizabethšŸŒø
ElizabethšŸŒø - avatar
+ 3
that helped.. thanks Elizabeth!
26th Oct 2017, 3:23 PM
Sushant Kulkarni
Sushant Kulkarni - avatar
+ 2
Link helped a lot. Thank you.
23rd Jan 2018, 8:38 PM
Osman Cem Yilmaz
Osman Cem Yilmaz - avatar