What does it mean when the parent has position relative and the child has position absolute in CSS? - Quora
![Pratham on Twitter: "Now let me apply relative position to red(parent) div and absolute position to black(child) div. As I mentioned absolute position is relative to closest ancestor having some position property Pratham on Twitter: "Now let me apply relative position to red(parent) div and absolute position to black(child) div. As I mentioned absolute position is relative to closest ancestor having some position property](https://pbs.twimg.com/media/EtDgdA2XYAA4C7l.jpg)
Pratham on Twitter: "Now let me apply relative position to red(parent) div and absolute position to black(child) div. As I mentioned absolute position is relative to closest ancestor having some position property
![Getting into position with CSS. The position property in CSS enables us… | by Louise Norris | Level Up Coding Getting into position with CSS. The position property in CSS enables us… | by Louise Norris | Level Up Coding](https://miro.medium.com/max/1400/1*uJHC31ePky0sEMSi5UrMbw.png)