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 7701235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:56:10+00:00 2026-05-31T22:56:10+00:00

What I am trying to is have a header image centered on the top

  • 0

What I am trying to is have a header image centered on the top with a different color background on either side, dynamically filling the rest of the page. The structure would look like this:

<div id="Header_Container">
  <div id="Header_Left"></div>
  <div id="Header_Center"></div>
  <div id="Header_Right"></div>
</div>

The Header_Center is of 960px and the Header_Left and Header_Right should fill either side of the image to the edge of the page and change width as the page width changes.

I can not get the CSS to work properly.

  • 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-31T22:56:11+00:00Added an answer on May 31, 2026 at 10:56 pm

    You must fix it using padding and box model + position : relative – it can be done without HTML Change

    <div id="Header_Container">
      <div id="Header_Left"></div>
      <div id="Header_Right"></div>
      <div id="Header_Center"></div>
    </div>
    

    And CSS ( 100px is for example )

    #Header_Container{ overflow: hidden; height: 100px; } 
    #Header_Container *{ box-sizing: border-box; height: 100%; } 
    #Header_Left{ width: 50%; padding-right: 480px; }
    #Header_Right{ margin-left: 50%; width: 50%; padding-left: 480px; position: relative; top: -100% };
    #Header_Center{ margin: 0 auto; width: 960px; position: relative; top: -200%; }
    

    Example is here http://jsfiddle.net/ZAALB/2/
    EDITed incorrect example

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a background image that I want to show after the top header.
I'm trying to make all rows have a hover background except the header row.
I have one div; header, and another called headerimg containing an image. I'm trying
I am trying to modify the HTML5 Boilerplate header to have a central image
Thanks in advance. I'm trying to have a gradient image on the top of
Code: //create the animation. $('img#header').hover(function(){ $(this).animate({top: -10px }, slow); I am trying to have
I have a logo/header in a css #logo2 {padding:43px 20px 0 20px; background:url(images/in_Store_Marketing.jpg) top
I'm trying to write a framework library which wraps MPI. I have a header
I'm trying to figure out how I can have a comment header automatically added
I have a problem with php header redirect. I already spent hours trying to

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.