First, I wonder if anyone can even say that question title ten times fast.
This should be pretty easy. I've been googling around, and while there are a lot of tutorials on it, I'm having trouble grasping the idea overall. I've even looked at some other SO questions that seem related but I've not been able to make them work.
I have 3 layers. header
, menu
, body
. The real application is much more complicated, of course. But for the sake of this question this is sufficient enough data.
The entire page itself fills 100% width
, but the content within each section will be fixed to 1024px
wide. This was easily done with the reknown margin: 0 auto;
style. So that wasn't an issue.
Here is the trick. The middle layer, the menu
. I want the menu to overlap the border between the header and the content. Now then, doing this was also not too hard. I just absolutely position the menu and kick it down by 100px
to get it to the right vertical alignment.
What I cannot seem to achieve is the horizontal
alignment of the 1024px
block. I've included a light fiddle and an image of the expected output (beware, jsfiddle's default preview pane is not 1024px wide, so it looks like it is working at first glance)
Update
Following the instructions at this post I was able to make it work. But it is only functioning in Chrome.
Desired Output (colors exaggerated for emphasis and distinction)