Problem with a:active

Discussion in 'CSS' started by Arianit, Mar 14, 2011.

  1. #1
    I have the following:

    <a class="ButtonLink" href="http://www.url.com/index.php"></a>
    Code (markup):
    and here the css settings:

    .siteHeader .ButtonLink {
        background-image: url("button.png");
        background-position: 50% 4%;
        background-repeat: no-repeat;
        height: 76px;
        left: 318px;
        position: absolute;
        top: 25px;
        width: 181px;
    }
    .siteHeader .ButtonLink:hover {
        background-image: url("button2.png");
        background-position: 50% 102%;
    }
    .siteHeader .ButtonLink:active {
        background-image: url("button2.png");
        background-position: 50% 102%;
    }
    Code (markup):
    I dont know why, but when im at http://www.url.com/index.php its not changing..

    Is that working only under <ul><li> tags or it should work any way?

    Please help me.
     
    Arianit, Mar 14, 2011 IP
  2. MaD HacKeR

    MaD HacKeR Peon

    Messages:
    73
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to have these diffrent in order to see some change , what diffrence will it make with the same on hover and active , change the values here to see the change

    .siteHeader .ButtonLink:hover {
    [COLOR="red"]    background-image: url("button2.png");
        background-position: 50% 102%;[/COLOR]
    }
    .siteHeader .ButtonLink:active {
    [COLOR="red"]    background-image: url("button2.png");
        background-position: 50% 102%;[/COLOR]
    }
    Code (markup):
     
    MaD HacKeR, Mar 14, 2011 IP
  3. MyLibary

    MyLibary Well-Known Member

    Messages:
    693
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Thats what he is trying to get, hover and active that will be the same... Good luck mate..
     
    MyLibary, Mar 14, 2011 IP