I am experiencing an issue with two items in a 'relative' container.
The problem arises when the 'absolute' item should be positioned relative to the container, but instead, it is being placed relative to the second 'static' item.
For example:
<div style="position:relative">
<button style="position:absolute;top: 200px">Button</button>
<div style="margin-top: 500px">hi</div>
</div>
The div containing 'hi' should be positioned below the button, however, the button is somehow appearing 200px below the 'hi' div.
It is important to note that adding a border to the container rectifies this issue.
Here is an example highlighting the difference with and without a border: JSfiddle