Links

sebastarix / 2012-09-27 12:57:40   

Hello,
I'm trying to get my links react to some colors as so :
a:link { text-decoration: none; color: #8F8F8F; }
a:visited { text-decoration: none; color: #8F8F8F; }
a:hover { text-decoration: none; color: #2B2B2B; }
a:active { text-decoration: none; color: #2B2B2B; }
a:img { border: none; }/* any img that is a link */
But after trying to put different colors, it's never changing anything. I always get the same colors such as a grey of hover and visited and a black for hover. I would like the black to stay black when it's active.
Thanks for your response.

Cheers

Seb

Vaska A / 2012-09-27 13:42:31   

Show us your site - will be easier to lend a hand then. ;)

sebastarix / 2012-09-27 13:47:24   

Thanks Vaska,

Here it is : sebas.ch
It seems that the active and visited aren't working...

sebastarix / 2012-09-27 14:25:09   

In fact, I just want the link to stay on a color once clicked on it ...

sebastarix / 2012-09-28 16:10:08   

Hmmm... I know it's not an interesting question, but someone knows how to make a link stay in its active color once the page clicked. Just for the time on the page and son on each time you click on a link? I've tried to look on the net and on the forum for tricks but couldn't find any. I'll would really appreciate if someone could tell me how to :-)

Vaska A / 2012-09-28 16:16:04   

I believe it's indicated in style.css with a note - look for 'active' and 'exhibit'.

7 / 2012-11-29 17:17:20   

I'm quite confused by the Links controls in the CSS.
Up til now I've used the site wide "links, active, visited, hover". But now I need seperate styles for both Index and Exhibit areas. I thought that could be done with the relevant parts on the CSS.

These:

/* links styles only for the #index region */
#index a:link { }
#index a:active { }
#index a:visted { }
#index a:hover { }

/* links styles only for the #exhibit region */
#exhibit a:link { }
#exhibit a:hover { }
#exhibit a:active { }
#exhibit a:visted { }

Do we use these *instead* of the standard link styles or all together? As I am getting a mixture of results that don't seem to make sense using all three links style parts!

Thanks.

7 / 2012-11-29 17:49:33   

Well I've found a way of organising the various instructions on each of the three styles to achieve what I wanted. Seems pretty illogical all of this though, not Indexhibit, the world of CSS link styles ;)

This thread has been closed, thank you.