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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:19:45+00:00 2026-06-01T20:19:45+00:00

I have a toggle script that works great, but I’m trying to add a

  • 0

I have a toggle script that works great, but I’m trying to add a mouseover effect and I’m having trouble with it.

I have four tags, two of which are simple DIV’s with background colors, and I have two additional Buttons with background images.

I created a mouseover effect for all tags, but it doesn’t look right when I click on a button. Once I click a button, the button needs to change background-position upon click and the mousever should stop over the buttons.

Here is my link: http://jsfiddle.net/eriksnet/9cr4F/1/

Thank you.

  • 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-01T20:19:46+00:00Added an answer on June 1, 2026 at 8:19 pm

    It’s because #r6:hover .gnM has a higher precedence over .button-toogle-on. CSS has an hierarchy of CSS, based on where it’s defined, if it’s inline or not, how many elements you specify. Read more here.

    Anyways, this works:

    #r6 #bxGender .button-toggle-on {
        background-position: 0 -120px
    }
    

    jsfiddle: http://jsfiddle.net/9cr4F/3/

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

Sidebar

Related Questions

I have a script that works great, but I need the background color to
Hi I have a toggle script that works on #toggleshow for the trigger and
I have a cool script that works with two buttons. I need to add
I have got this script that works fine, that allows a user to vote,
I have this little script to toggle a contact form when a button is
I'm trying to submit a Rails form with AJAX. I have some toggle on/off
I have a jquery toggle that animates and displays a DIV. I have a
I have some HTML that I need to toggle between two structures - one
I have a flash site that users can view full Screen video. the trouble
I have a script here, and it works amazing, except for one small detail.

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.