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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:37:53+00:00 2026-06-19T03:37:53+00:00

I am creating a fix layout (960px wide) for my web-template. But I want

  • 0

I am creating a fix layout (960px wide) for my web-template. But I want my menu-bar’s width as the width of the browser (which means, as wide as possible without margins).

CSS for body :

body{
    width:960px;
    min-width:960px;
    margin:auto auto;
}

How can i do that ?

A layout like this : http://www.google.com/analytics/index.html
(notice the fixed width of body and the menu bar is wider than that)

  • 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-19T03:37:53+00:00Added an answer on June 19, 2026 at 3:37 am

    What I think you want is to have your content in the 960px region centered, but have the ability to have other content (your menu in this case) that can be the full size of the page. To be able to do that, you can’t have the width of the body itself set like you do. Instead, you should have some HTML like:

    <html>
    <head>
      :
    </head>
    <body>
      <div id="ContentBox">
        : put your content here
      </div>
      <div id="Menu">
        : Menu content here
      </div>
    </body>
    </html>
    

    Then in your CSS:

    #ContentBox {
      margin: 0 auto;
      width: 960px;
    }
    #Menu {
      /* Whatever is applicable */
    }
    

    As for the Google Analytics site, they have separate sections of the page at full width, with the color, borders, etc. defined, then a region just like #ContentBox I described above in each section. You can even make it a common class and reuse it, like:

    <body>
      <div id="HeaderBar">
        <div class="ContentBox">
          :
        </div>
      </div>
      <div id="GreyBGRegion">
        <div class="ContentBox">
          :
        </div>
      </div>
    </body>
    

    CSS:

    #HeaderBar {
      border-bottom: #CCCCCC 1px solid;
      background-color: #000000;
      color: #FFFFFF;
    }
    #GreyBGRegion {
      border-bottom: #CCCCCC 1px solid;
      background-color: #F0F0F0;
      color: #000000;
    }
    .ContentBox {
      margin: 0 auto;
      width: 960px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im creating an android app which uses a menu.xml file in the res folder.
I am creating an application and I want it to have a Fix Background
I'm having problems creating a regular expression which will fix a valid string. The
I am creating a barbutton programmatically. But it can't fix into screen. Help me
I creating a web application using JSF,Hibernate,Spring. I have added a filter for checking
I am creating an app which adds Tables to a Form and arrages them
Creating a code where the user enters the amount of seats they want, the
Hi I'm creating an email but I'm not sure how to adjust the automated
I am creating an imap client. I want to parse body and header of
I am currently trying to design a layout which will be compatible for multiple

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.