a:active not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • James
    New Member
    • Jun 2011
    • 17

    a:active not working

    Hi, I seem to be having a problem getting a ink to show a certain colour when active. Below is my code for you to look at...

    Code:
    #navigation {
    	font-size:12px;
    	position:absolute;
    	bottom:10px;
    	left:583px;
    }
    
    #navigation a {
    	color:#FFFFFF;
    	text-decoration:none;
    	width:100px;
    }
    
    #navigation a:hover {
    	font-size:12px;
    	color:#15959B;
    }
    
    #navigation a:active{
    	font-size:12px;
    	color:#15959B;
    }
  • londres9b
    New Member
    • Apr 2010
    • 106

    #2
    In the code you posted you have the same color value for both :hover and :active.

    Try change it to a different color. Also, you don't need that 'font-size:12px' in all your style declarations.

    Code:
    #navigation {
        font-size:12px;
        position:absolute;
        bottom:10px;
        left:583px;
    }
     
    #navigation a {
        color:#FFFFFF;
        text-decoration:none;
        width:100px;
    }
     
    #navigation a:hover {
        color:#15959B;
    }
     
    #navigation a:active{
        color:red; 
    }

    Comment

    Working...