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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:53:18+00:00 2026-06-18T05:53:18+00:00

Hello i really try to search and to do mutiple experiments, anyway i can

  • 0

Hello i really try to search and to do mutiple experiments, anyway i can get this working..

Im using a javascript menu, working Perfect, but i try to change the background for each menu, it also go great.. but the HOVER and ACTIVE, are not working for that elements, why.. this code must do it or that was what i think.. =( pls help me learn.

css code

/* COMIENZA  TOP NAVI*/
 .topnavi a {
    width:90px;
    height:65px;
    float:left;
    margin:3px;
    background:url(../imagenes/topnav_01.png) 0 0 no-repeat;
    display:block;
    font-size:1px;
}


#tn02 {background:url(../imagenes/topnav_02.png) 0 0 no-repeat;}     
#tn03 {background:url(../imagenes/topnav_03.png) 0 0 no-repeat;}
#tn04 {background:url(../imagenes/topnav_04.png) 0 0 no-repeat;}
#tn05 {background:url(../imagenes/topnav_05.png) 0 0 no-repeat;}




/* mouseover state */
.topnavi a:hover {
    background-position:0 -65px;
}

/* active state (current page state) */
.topnavi a.active {
    background-position:0 -130px;
}        

/* TERMINA TOP NAVI*/

html code

<div class="topnavi">
  <a href="1" class="active" id="tn01"/>
  <a href="2" class="" id="tn02"/>
  <a href="3" class="" id="tn03"/>
  <a href="4" class="" id="tn04"/>
  <a href="5" class="" id="tn05"/>
</div>
  • 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-18T05:53:19+00:00Added an answer on June 18, 2026 at 5:53 am

    ID references take preference over class references. Don’t forget that the “C” in CSS stands for Cascading! Your #tn0* rules are taking precendence over the background-position property you define later.Try adding !important.

    /* mouseover state */
    .topnavi a:hover {
        background-position:0 -65px !important;
    }
    
    /* active state (current page state) */
    .topnavi a.active {
        background-position:0 -130px !important;
    }    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would really appreciate to get your help on this, as I can't seem
Hello I am using this code to get the data I need from 5
Hello I am really stumped with this seemingly simple task. I can access the
hello its really weird that a if and else statement is not working in
Hello once again stackoverflow folks, this is really hard and it's been torturing my
I've been using arrays lately and really missing Python's in operator. e.g.: if (hello
Hello all I am working on javascript jquery and svg.I want to ask a
Hello all I am working on html and javascript.And I am going to ask
hello evrey body i have try really hard to write a file to android
I have created a method where I can search for string placeholders, this 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.