www.webdeveloper.com
Results 1 to 3 of 3

Thread: Color of selected link

  1. #1
    Join Date
    Sep 2004
    Location
    Trenton, IL
    Posts
    60

    Color of selected link

    I'm trying to set up my CSS for when a link is selected, it stays one color, until another link is selected. Imagine it as when a page comes up, the link that corresponds to that page stays a certain color. The normal color of the links is black, hover is gold, selected should be gold, visited is dark brown. Am I missing something in the a:active part? Here's all the CSS code for my links...

    Code:
    div#navigationlinks {
    	clear: both;
    	float: left;
    	top: 90px;
    	left: 15px;
            width: 200px;
    }
    
    div#navigationlinks ul {
    	font-family: Arial, Helvetica, sans-serif;
    	font-size: 100%;
            color: rgb(0,0,O);
    	text-decoration: none;
    	text-transform: uppercase;
    	font-weight: lighter;
    	list-style-type: square;
    	margin-top: 5px;
    	line-height: 110%;
    }
     
     div#navigationlinks ul a:link { 
            color: rgb(0,0,0);
            text-decoration: none;
    }
    
    div#navigationlinks ul a:visited { 
            color: rgb(139,69,19);
            text-decoration: none;
    }
    div#navigationlinks ul a:active { 
            color: rgb(255,215,0);
            text-decoration: none;
    }
    
    div#navigationlinks ul a:hover { 
            color: rgb(255,215,0);
            text-decoration: none; 
    }
    Thanks

  2. #2
    Join Date
    Dec 2003
    Posts
    87
    exactly what color do u want it to stay?
    and normally i think i'd put hover before active..

    this page might or might not be useful, depending on what u wanna do.. random google

    Link Specificity

  3. #3
    Join Date
    Sep 2004
    Location
    Trenton, IL
    Posts
    60
    I would like it to stay the gold color, which is the same color as the hover color. I'll put hover before active like you said. Let me know if I should put all the code I have for a better visual understanding. Thanks for your help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles