0
Position in Css
Hi. I've read a lot about positionning in Css but I cant seem to make a difference between position absolute and relative. Can u explain it well enough? Thank you in advance
2 Respostas
+ 12
Hope this helps:
https://code.sololearn.com/WLJo9W7s8G8W/?ref=app
+ 1
//An element with position: absolute; is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed). However; if an absolute positioned element has no positioned ancestors, it uses the document body, and moves along with page scrolling.