PDA

View Full Version : Active Link Playing up


latemodern
03-27-2006, 12:45 PM
Hi,

For some reason my active link won't display the gif file that it is supposed to. I can only see it literally when I am clicking.

Any ideas? This is the css:

#links #links_inner a{

height:25px;
padding:5px 10px 0px 10px;;
margin-bottom:0px;
border:none;
background-image: url(../images/organics/os_links2.gif);
background-repeat: no-repeat;
background-position: 0px;
background-color:none;
width:80px;
color:#666;
font-size: 13px !important;
}

#links #links_inner a:link {

}

#links #links_inner a:visited {

}

/* #links #links_inner a:focus {
height:25px;
padding:5px 10px 0px 10px;
margin-bottom:0px;
border:none;
background-image: url(../images/organics/os_links2_over.gif);
background-repeat: no-repeat;
background-color:#000;
width:80px;
color:#000000;
}

*/

#links #links_inner a:hover {

height:25px;
padding:5px 10px 0px 10px;;
margin-bottom:0px;
border:none;
background-image: url(../images/organics/os_links2.gif);
background-repeat: no-repeat;
background-position: 0px;
background-color:none;
width:80px;
color:#000;

}

#links #links_inner a:active {
height:25px;
padding:5px 10px 0px 10px;;
margin-bottom:0px;
border:none;
background-image: url(../images/organics/os_links2_over.gif);
background-repeat: no-repeat;
background-color:#666;
width:80px;
color:#000000;
}

May thanks

Chris

Bill Posters
03-27-2006, 12:52 PM
Hi,

For some reason my active link won't display the gif file that it is supposed to. I can only see it literally when I am clicking.
…which is exactly what the :active pseudo-class is supposed to do.

I think what you are after is a method to highlight the link pointing to the current page.

e.g.
http://www.codingforums.com/showthread.php?t=66597