How to create active image menu button?

Discussion in 'CSS' started by loko, Sep 17, 2010.

  1. #1
    Hello

    I found this grat tutorial http://www.webdesignerwall.com/tutorials/advanced-css-menu/
    There is two option about image menu:
    - normal link/button
    - hover link/button, change when someone hovers the mouse on

    How to make a button was active when the page is the same as the address button?
    I try add to css some code:

    	#menu2 a:active {
    	background-position: left bottom;
    }
    HTML:
    but it does not work.
     
    loko, Sep 17, 2010 IP
  2. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #2
    I do not understand your question.

    Can you show us the HTML and CSS you have?
     
    CSM, Sep 17, 2010 IP
  3. loko

    loko Peon

    Messages:
    299
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    loko, Sep 17, 2010 IP
  4. murugesan

    murugesan Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try this css:

    #menu2 a:visited {
    background-position: left bottom;
    }
     
    murugesan, Sep 20, 2010 IP