Looking to achieve a header design similar to stackoverflow, where the background color expands and takes over both sides of the page while keeping the text centered. However, unsure about the correct technique to do this using the 960grid system. Here is my HTML:
<body>
<div class="container_24">
<div id="header-top-border" class="grid_24"></div> # occupies top of page.
<div id="header-background" class="grid_24"></div> # occupies top of page.
<div id="logo" class="grid_5">
<h1>Logo</h1>
</div>
</div>
</div>
Wanting the Logo on top of the header-background
, but uncertain whether it should be within the header-background
div or not based on the CSS here. How can I achieve this?
Appreciate any guidance.