When using absolute positioning you have to set a context. This is done by giving the element that contains those that you wish to position as "position:relative" style.
If you don't do this, browsers will assume one for you. In some cases they're position from the parent element, in others from the browser window.
In your case, I'd recommend adding "position:relative" to your headerWrapper div and then making any adjustments that you need to the top and right of the elements themselves.



