Forum Moderators: not2easy
#leftpanel a{
text-decoration:none;
color:#06c; /*whatever colour is */
}
#leftpanel a:hover{
text-decoration:underline;
}
Not 100% sure what you are trying to do - if you are saying you want links and visited states to be the same I usually state the exact colour and use div name and then just simply 'a' this always seems to work for me in ie and FF
ZA
Not 100% sure what you are trying to do
I have a list of links which are all going to be different colors e.g.
<div id="leftpanel">
<ul>
<li style="color:#000;"><a href="http://www.test.com">WORKSHOPS</a></li>
<li style="color:#94B242;"><a href="http://www.test.com">EXHIBITIONS</a></li>
</ul>
</div>
and I have the aforementioned styles in my css.
Basically I want the links to remain the color determined in the list, whether they are visited or not.
IE is coloring the links blue, and visited ones purple, as is default behaviour. Firefox is displaying what I want, the links are black and green respectively, even when visited.
Can I make IE do this too? Am I approaching this right or am I in a right muddle?!
this is how I would approach it, and I know this works both in IE and in FF:
<div id="leftpanel">
<ul>
<li id="n-workshops"><a href="http://www.test.com">WORKSHOPS</a></li>
<li id="n-exhibtions"><a href="http://www.test.com">EXHIBITIONS</a></li>
</ul>
</div>
<style>
#n-workshops a {
color: #000;
}
#n-exhibtions a {
color: #94B242;
}
#n-workshops a:hover, #n-exhibtions a:hover {
text-decoration: none;
}
</style>
But this may not be what you are looking for..
Za