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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:41:40+00:00 2026-05-15T08:41:40+00:00

I have two elements on the same page that are using the same stylesheet:

  • 0

I have two elements on the same page that are using the same stylesheet: Jquery Tabs and Jquery Slider.

I cannot redefine classes of slider since change of css will affect both elements.

Tabs using these classes:

ui-tabs ui-widget ui-widget-content ui-corner-all

And these are used in Slider:

ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all

How can I modify slider css without modifying one for tabs?

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-05-15T08:41:41+00:00Added an answer on May 15, 2026 at 8:41 am

    Tell your styles what to do 🙂

    css

    .ui-slider{
     /* regular used in other areas etc, etc */
    }
    
    #mySlider.ui-slider {
    /* forced styles, whatever, etc, etc */
    }
    

    or use classnames for multiple sliders , like:

    .customSlider.ui-slider {
    
    }
    .customSlider.ui-corner-all {
    
    }
    

    html

    <div id="mySlider" class="slider"></div>
    or
    <div class="customSlider"></div> 
    

    I should specify on the css:

    You can specify more than one qualifier for selectors.. css like this:

    #idOfElement.classname {
     /* will only match items with id of "idOfElement" and class of "classname"
      <div id="idOfElement" class="classname" ></div> */
    }
    
    div.classname.classname2 {
      /* will only match divs with both classnames:
       <div class="classname classname2" ></div> */
    }
    

    hopefully that gives you a good idea of what’s going on…

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

Sidebar

Related Questions

I have two span elements that I would like to stay on the same
I want to be able to have two Haml elements on the same line.
I have two enumerables with the exact same reference elements, and wondering why Equals
I have two div elements that are twins (i.e. their dimensions and contents are
I have a wordpress site with jQueryUI tabs applied to two different elements of
I have two different div elements on two different webpages that use two different
I have two JSON objects with the same structure that I want to visualize
I have a list that is being fed in to my page using an
I am creating a web application using backbone.js. I have two tabs. Tab 1
I'm using asp.net webGrid in which i have two buttons which both open same

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.