Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6945757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:28:37+00:00 2026-05-27T13:28:37+00:00

Similar to stackoverflows header, I am trying to make my header background color expand

  • 0

Similar to stackoverflows header, I am trying to make my header background color expand and take over both sides of the page while still keeping the text in the center but I’m not sure of the correct technique on how to do this using the 960grid system. This is my html:

<body> 
  <div class="container_24">
     <div id="header-top-border" class="grid_24"></div> # take over top of page.
     <div id="header-background" class="grid_24"></div> # take over top of page.
     <div id="logo" class="grid_5">
       <h1>Logo</h1>
     </div>        
  </div>
</div>

I would like have the Logo be on top of the header-background and judging by the css on this site I’m not sure if it should be inside of the header-background div or not. How is this done?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:28:38+00:00Added an answer on May 27, 2026 at 1:28 pm

    You want to put the header-background outside of the container_24 div, because the latter acts as a wrapper restricting the width of the usable page. If you want the logo to go on top of the header-background, you can put it inside header-background, or you can put it outside and shift it on top using negative margins, absolute positioning and z-index. Probably best to just put it inside header-background.

    Your code might look like this:

    <body>
      <div id="header-background" class="banner">
        <div class="container_24"> # You may want this to help position things inside the banner
          <div id="logo" class="grid_5"><h1>Logo</h1></div>
        </div>
      </div> # uses entire width of the window
      <div class="container_24"> # only 24 columns wide
        # everything else...
      </div>
    </body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page with fixed position of header on scroll. Similar as on
I'm trying to make one of those things similar to the stackoverflow orange messages
I am trying to make cross-domain requests with Safari on Windows. My Safari version
I'm trying to model a site similar to StackOverflow. It has a set of
In an application similar to StackOverflow that I am building, I am trying to
Im trying to implement a voting system similar to stackoverflow and I have something
I have a page that allows users to comment on answers very similar to
I'm trying to implement a feature similar to StackOverflow's tag feature. That a user
I'm trying to write a page that allows users to type a post and,
I am trying to do something similar to stackoverflow notification, when you earn a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.