Forum Moderators: not2easy

Message Too Old, No Replies

Can't overide link colour

when class is applied...

         

collymellon

12:33 pm on Sep 14, 2005 (gmt 0)

10+ Year Member



Hi all,

I'm defining styles to my li's using the following snippet:

ul#main ul.sub li a{
color: #23aee7;
padding: 0 0 0 15px;
line-height: 14px;
}

All is well until I click on one of the links, I have some asp code running behind to set a class when a link is clicked - it sets the class perfect (say if a specify a border) but it will not change the color to the one specified in the class, it seems no matter what I do I cannot overide the default color set above..

Any ideas?

Span

1:07 pm on Sep 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you using the same selectors to override the color?

To override this:
ul#main ul.sub li a {
color: #23aee7;
}

you would have to use:
ul#main ul.sub li a.collymellon {
color: #ffccoo;
}

[edited by: Span at 1:08 pm (utc) on Sep. 14, 2005]

collymellon

1:08 pm on Sep 14, 2005 (gmt 0)

10+ Year Member



Its fixed now - Typical really spend a good few hours trying to fix it, post msg on here and fix it 20minutes later :)

Admin please remove this post if you can. thnks

collymellon

1:09 pm on Sep 14, 2005 (gmt 0)

10+ Year Member



span that was more aless what I did in the end, I appreciate your response - thanks