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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:45:43+00:00 2026-05-24T12:45:43+00:00

I use two instances of jQuery tabs defined by id tabs & tabs2 The

  • 0

I use two instances of jQuery tabs defined by id tabs & tabs2

The class that defines color of the tabs background is called ui-widget-header

Can I somehow change the background color for the second tab tabs2? jsfiddle

enter image description here

HTML

results

textarea

CSS

.ui-widget-header {
    background: url("images/ui-bg_gloss-wave_35_f6a828_500x100.png") repeat-x scroll 50% 50% #F6A828;
    border: 1px solid #E78F08;
    color: #FFFFFF;
    font-weight: bold;
}


    <div id="tabs2-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom"> 
<div style="overflow:auto;height:600px" id="results"></div></div>
<div id="tabs2-2" class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide">    </div>

</div>

I tried

#tabs2 > .ui-widget-header {background-color: blue;}

and

#tabs2.ui-widget-header {background-color: blue;}

but none worked

  • 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-24T12:45:43+00:00Added an answer on May 24, 2026 at 12:45 pm

    Update, for jQuery-UI:

    It is not enough to set the background color, you must also remove the background image that jQuery-UI uses.

    So, this:

    #tabs2 {
        background-color: powderBlue;
        background-image: none;
    }
    

    Produces this:

    Base BG color change

    But I’m going to guess that you want more like this:

    Fancier BG color change

    Which requires more elaborate CSS:

    #tabs3 {
        background-color: powderBlue;
        background-image: none;
    }
    #tabs3 .ui-tabs, #tabs3 .ui-tabs-panel, 
    #tabs3 .ui-tabs-selected, #tabs3 .ui-tabs-selected a {
        background-color: powderBlue;
        background-image: none;
    }
    

    See it at jsFiddle.



    Old answer, for the generic question:

    Based on the newly pasted HTML,

    #tabs2 ul.ui-widget-header {background-color: blue;}
    

    Should do the trick.

    If not, one of these should work:

    #tabs2 {background-color: blue!important;}
    #tabs2 ul {background-color: blue!important;}
    #tabs2 {background-color: blue;}
    #tabs2 ul.ui-widget-header {background-color: blue!important;}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a Java webservice application (with JAX-WS) that has to use two
I have some websites I built times ago, that use jquery mouse events...I just
Let's say I have a class called myclass. In my code I have two
Since SQL Server Express is free to use, If I install two instances of
I have built two control containers on a page, one is using jquery-ui tabs
I use the Joda time package to calculate durations between two historic instances in
I need to use two extension methods SqlCommandExtensions & SqlConnectionExtensions http://msdn.microsoft.com/en-us/library/microsoft.practices.enterpriselibrary.windowsazure.transientfaulthandling.sqlazure(v=pandp.50).aspx Here they say
In my controller class, I initialize two instances of a model class (whose header
I use two Spinner in my App. One of them is initially disabled because
Can I use two different back ends for an .net Entity Framework project? I

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.