Help with hover in the CSS Joomla

Discussion in 'Joomla' started by sarah85, Feb 14, 2010.

  1. #1
    Hi

    I need help with a hover fucntion is the CSS of my joomla site. Basically the hover on and off switch works for only 2 of my top menu tabs. I have no idea why it works for only 2 and not the rest.

    Please have a look at www.onlinecasinowoman.com and see when you click on the tabs it is suppose to be a light pink when that tab is selected this works for 2 of the tabs but not the rest :/

    Here is the CSS code and if someone could explain this to me that would really help me out. Or see what i can change in the CSS to make this work for all tabs.

    Thanks :)

    /* begin MenuItem */
    .art-menu ul li
    {
    clear: both;
    }

    .art-menu a
    {
    position:relative;
    display: block;
    overflow:hidden;
    height: 29px;
    cursor: pointer;
    text-decoration: none;
    margin-right: 2px;
    margin-left: 2px;
    }


    .art-menu a .r, .art-menu a .l
    {
    position:absolute;
    display: block;
    top:0;
    z-index:-1;
    height: 87px;
    background-image: url('../images/MenuItem.png');
    }

    .art-menu a .l
    {
    left:0;
    right:4px;
    }

    .art-menu a .r
    {
    width:408px;
    right:0;
    clip: rect(auto, auto, auto, 404px);
    }

    .art-menu a .t
    {
    font-family: Arial, Helvetica, Sans-Serif;
    font-size: 12px;
    font-style: normal;
    font-weight: normal;
    color: #FFFFFF;
    padding: 0 19px;
    margin: 0 4px;
    line-height: 29px;
    text-align: center;
    }

    .art-menu a:hover .l, .art-menu a:hover .r
    {
    top:-29px;
    }

    .art-menu li:hover>a .l, .art-menu li:hover>a .r
    {
    top:-29px;
    }

    .art-menu li:hover a .l, .art-menu li:hover a .r
    {
    top:-29px;
    }
    .art-menu a:hover .t
    {
    color: #E2ECF3;
    }

    .art-menu li:hover a .t
    {
    color: #E2ECF3;
    }

    .art-menu li:hover>a .t
    {
    color: #E2ECF3;
    }


    .art-menu a.active .l, .art-menu a.active .r
    {
    top: -58px;
    }

    .art-menu a.active .t
    {
    color: #070E12;
    }


    /* end MenuItem */
     
    sarah85, Feb 14, 2010 IP
  2. JoomlaDesigner

    JoomlaDesigner Active Member

    Messages:
    956
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Ok. I got the issue over here.
    you need to apply class="active" to <a> tag when you are on that page.

    You did it for first 2 pages but for rest of the page, it's not there. so do it and it will fix your problem.

    Hope it helps...
     
    JoomlaDesigner, Feb 15, 2010 IP
  3. sarah85

    sarah85 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi

    I am not understanding what you mean here?

    Maybe I am putting it in the wrong place but I still can't seem to get it.

    i can see how one is active but I am not sure where I am suppose to put the others?
     
    sarah85, Feb 15, 2010 IP
  4. jonsan

    jonsan Guest

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi friend inset this code on your template.css file

    a:link { color: red; }
    a:visited { color: red; }
    a:hover { color: blue; }

    thank you :D
     
    jonsan, Feb 16, 2010 IP
  5. sarah85

    sarah85 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi

    a:link { color: red; }
    a:visited { color: red; }
    a:hover { color: blue; }

    This would work if it wasnt an image.

    It has something to do with the active but i have no idea how that works

    Thanks for you help seems that I am still working on it :(
     
    sarah85, Feb 16, 2010 IP