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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:08:32+00:00 2026-06-01T22:08:32+00:00

I have a issue with my menu: I have a div with 960px, which

  • 0

I have a issue with my menu:
I have a div with 960px, which have a background (image 2). In the left of image 2, need another element with fitt left space, and right, a div which need to fitt right space.

So, if I have a resolution of 1024px, left need to have 32px, center (ever) 960px and right 32px. If have a resolution of 2048px, left: 544px, center: 960px, right: 544px.

<div id="container-menu">
    <div id="left-bg">// EMPTY, ONLY NEED TO FIT THE WINDOW LEFT //</div>
    <div id="center-bg">// HERE GO MENU AND LOGO //</div>
    <div id="right-bg">// EMPTY, ONLY NEED TO FIT THE WINDOW RIGHT//</div>
</div>

See image:
enter image description here

UPDATE:

Image 1 and Image 3 have 1px of width and repeat-x added to background

Image 2 have 960px of width

All images are transparent png.

Thanks!

  • 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-06-01T22:08:34+00:00Added an answer on June 1, 2026 at 10:08 pm

    You can use CSS3 Flex property for this.

    For Example:

    HTML

    <div class="parent">
     <div class="left">1</div>
     <div class="middle">2</div>
     <div class="right">3</div>
    </div>​
    

    CSS

    .parent {
        display: -moz-box;
        -moz-box-orient: horizontal;
        display:-webkit-box;
        -webkit-box-orient: horizontal;
        width: 100%;
    }
    
    .parent div{
        -moz-box-flex: 1;
        -webkit-box-flex: 1;
        height:40px;
    }
    .parent .middle{
        width:460px;
        background:yellow;
    }
    .left{background:red;}
    .right{background:blue;}
    

    Check this http://jsfiddle.net/pMh97/1/

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

Sidebar

Related Questions

I have an issue where the dropdown menu options appear beneath the swfobject which
I have a menu div which changes height dynamically, depending on the content. The
I have an issue where the sub menu (dropdown) is behind the #main div.
I have 2 div tags which emulate a drop-down menu. When the outer div
So my issue is thus; I have a image menu (block of 4 photos),
I have an issue with IE6&7 that I cannot debug. I have a menu
I current have a need to have a contenteditable div tag inside an li
I have a webpage looks something like this: <html> ... <div id=menu> ... <ul
I have a strange issue with my css navigation menu. The code is here:
I'm having a jquery issue with a small menu I have. I have 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.