Pratham on Twitter: "- The absolute position of an element is relative to its closest ancestor, which has some position property. Consider the code below, Red is the parent div and black
![css - Difference between style = "position:absolute" and style = "position:relative" - Stack Overflow css - Difference between style = "position:absolute" and style = "position:relative" - Stack Overflow](https://i.stack.imgur.com/gz265.png)
css - Difference between style = "position:absolute" and style = "position:relative" - Stack Overflow
![html - Positioning two blocks in absolute position for desktop and relative position for mobile using CSS or Jquery - Stack Overflow html - Positioning two blocks in absolute position for desktop and relative position for mobile using CSS or Jquery - Stack Overflow](https://i.stack.imgur.com/h1EBq.jpg)