Click to See Complete Forum and Search --> : Want to change selected links css


goodforum
08-20-2007, 02:05 AM
I want to change the css of selected links i am using A:active property but it works before the page loads. After the page is loaded the effects disables
can anybody help in this regard.

bathurst_guy
08-20-2007, 07:14 AM
Must also be set elsewhere in the page. If you can provide us with a link we may be able to help further.

WebJoel
08-20-2007, 08:42 AM
Do these 'selected links' reside inside of a semantically marked-up container like an "<ul>"? If so, give the "<ul>" an class and target your pseudo-class for that:

HTML:
<ul class="selected">
<li></li> etc...
</ul>

CSS:
ul.selected a:active {foo:bar;...}

something like this.

ray326
08-20-2007, 10:18 PM
Your meaning is not real clear. Do you mean you have a link on one page to another page that contains a link to itself? Maybe you've missed the meaning of :active. It's similar to onmousedown.