I attempted to place a banner at the top of a webpage, but ran into trouble with positioning two divs correctly. They were not aligning properly (using the same method as a single static div would) and one was appearing below the other.
Here is the code: http://jsfiddle.net/AndyMP/wFutk
Eventually, I found a different, simpler way to achieve the desired result: http://jsfiddle.net/AndyMP/TJjwp/1/
However, I still find it bothersome that I couldn't make the initial method work. Any advice on how to properly offset from the middle of the container div would be greatly appreciated.
(**Edit: I should mention that this was done in IE9 and you may need to adjust the size of the preview pane in jsfiddle to view it all)