The best way to position things accurately one on top of the other is to wrap them all in a <div style=“position:relative”> and then use position:absolute and their top and left position relative to the surrounding div. When the relative div moves to a different position on the page due to resizing the browser window all the content within it including those that are position:absolute move with it.