Position can be really tricky, that's why there is some positioning library.
They are engines for making an absolutely positioned element stay next to another element on the page.