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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:16:06+00:00 2026-06-07T06:16:06+00:00

I am currently struggling as the title for this question mentions: centering the menu

  • 0

I am currently struggling as the title for this question mentions: centering the menu tabs according to the width of the tab content. Also i am not sure why there is a gap between the content and the menu tab.

Question: Why is the menu not adapting to the width of the tabs content?

LIVE EXAMPLE

enter image description here

CSS jquery ui- tabs.css

<style>
    #page-wrap                          { width: 675px; margin: auto; background:#FFF;}


    .ui-tabs                            { zoom: 1; }
    .ui-tabs .ui-tabs-nav               { list-style: none; position: relative; overflow: hidden; 
                                           z-index: 1000; }
    .ui-tabs .ui-tabs-nav li            { position: relative; float: left; 
                                          border-bottom-width: 0 !important;   background: #EBEBEB; }
    .ui-tabs .ui-tabs-nav li a          { float: left; text-decoration: none; padding: 5px 10px ;  outline: medium none; font-weight: bold; font-size:11px; line-height: 
    35px;}
    .ui-tabs .ui-tabs-nav 
    li.ui-tabs-selected                 { border-bottom-width: 0; background: #F9AE5C; color: #6A6A6A;  border-top:1px solid #D4D4D4; border-left:1px solid #D4D4D4; border-right:1px solid #D4D4D4;  }
    .ui-tabs .ui-tabs-nav 
    li.ui-tabs-selected a, .ui-tabs 
    .ui-tabs-nav li.ui-state-disabled a, 
    .ui-tabs .ui-tabs-nav 
    li.ui-state-processing a            { cursor: text;  }
    .ui-tabs .ui-tabs-nav li a, 
    .ui-tabs.ui-tabs-collapsible 
    .ui-tabs-nav li.ui-tabs-selected a  { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
    .ui-tabs .ui-tabs-panel             { padding: 20px; display: block; border-width: 0; background: none; 
                                           position: relative; min-height: 100px;  border: 1px solid #D4D4D4; }
    .ui-tabs .ui-tabs-hide              { display: none !important; }
    .pngIcon{ padding:0px 5px 0px 5px; vertical-align:top;}


    a.mover                             { background: #900; padding: 6px 12px; position: absolute;
                                          color: white; font-weight: bold; text-decoration: none;}
    .next-tab                           { bottom: 0; right: 0; -moz-border-radius-topleft: 10px; -webkit-border-top-left-radius: 10px; }
    .prev-tab                           { bottom: 0; left: 0; -moz-border-radius-topright: 10px; -webkit-border-top-right-radius: 10px; }
</style>
  • 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-07T06:16:07+00:00Added an answer on June 7, 2026 at 6:16 am

    Here is the solution: http://jsfiddle.net/surendraVsingh/GDABm/1/

    CSS Changes:

    .ui-tabs{ 
      zoom: 1; 
      text-align:center;  /* Add This */
    }
    
    .ui-tabs .ui-tabs-nav{ 
      list-style: none; 
      position: relative; 
      overflow: hidden; 
      z-index: 1000; 
      display:inline-block; /* Add This */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently struggling with this Collection was modified; enumeration operation may not execute issue.
Ok so this might not be the best title but I am struggling with
thanks for reading this. I am currently struggling with this website http://ukshinwakai.org/uks/ in IE
I'm currently struggling with dynamic UI in Mac OS X. I created a Menu
I apologize for the newbie question, but I am struggling with this problem. I
I´m currently struggling to get this to work. SELECT Y, SUM(N) AS sumDK, NULL
I'm currently struggling a bit trying to keep my controller specs DRY and succinct
I'm currently struggling to figure out a solution to a situation I'm in. I'll
Because I'm currently struggling to learn IBM Rational ClearCase, I'd like to hear your
I'm currently struggling to use UI elements in Interface Builder. I keep 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.