I’m developing a new website and am having a problem; when I resize my window, everything “moves” correctly except for my login and “sitetools” (logout, admin buttons) which I’ve placed in the banner. In addition, I’ve noticed on different size screens it winds up in surprising places. I think that it may be due to my lack of understanding as to what absolute and relative positioning do (this is my level of CSS knowledge!), but Icould be mistaken.
On that page, I’ve included what should be the necessary CSS to point out the issue; however, I’d be more than happy to provide the more complete style sheet for my site if you might think that it’s due to some sort of weird Cascading.
An element that is positioned absolutely will be positioned in relation to its nearest parent that has position absolute or relative. In the absence of such a parent, the viewport gives the positioning context.
In your case, you need to add position: relative to the header div:
You may also want to change the positioning of the form, as it will move position a little bit now that it is measuring its position from the left side of the header.