I’m trying to create a layout where the header is fixed and the middle header div is aligned with the content div.
I got two issues:
- There is a small offset that I can’t fix.
- The border-top of
content-wrapperis not visible, why?
Fiddle: http://jsfiddle.net/sxZJ3/3/
Offset and no border-top:

The offset is due to you setting a
padding: 5pxon awidth: 100%.The reason you can’t see the border-top is because of the
border-bottomon the#header, which gives it an extra1pxof height, for a total of61px. I would decrease theheightto59px, thereby yielding a total height of60px.Edit: Here’s an updated fiddle