What is difference between relative and absolute position | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 3

What is difference between relative and absolute position

20th Feb 2018, 3:23 AM
Anil Raj
Anil Raj - avatar
4 Respostas
+ 44
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
20th Feb 2018, 4:35 AM
ElizabethšŸŒø
ElizabethšŸŒø - avatar
+ 14
a complete lession šŸ‘‰css positioningšŸ‘ˆ https://www.w3schools.com/css/css_positioning.asp
20th Feb 2018, 3:54 AM
ā˜†SampathšŸ‘»
ā˜†SampathšŸ‘» - avatar
+ 2
thanxx alotšŸ˜ƒ
20th Feb 2018, 4:37 AM
Anil Raj
Anil Raj - avatar
+ 1
Thanks
23rd Feb 2018, 10:48 AM
Gabrielo Sombra
Gabrielo Sombra - avatar