Welcome to WebmasterWorld Guest from 54.159.50.111

Forum Moderators: not2easy

Message Too Old, No Replies

link class being ignored in ie - working in firefox

     
4:15 pm on Feb 8, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 30, 2003
posts:54
votes: 0


hi,

i am using a navigation bar at the top of my pages that has been designed with CSS and java (thanks to gazingus).

I have set it up so that visited links have no decoration and do not change colour in the navigation, as opposed to the main body of text where they do behave as normal links.

i.e. a:visited {.......normal behaviour
and a.actuator:visited {.......no changes to appearance

this works fine in firefox (gotta love it!)

but in internet explorer, for some reason, it ignores the 'a class="actuator"' and uses my normal link rules. (gotta... errr... not love it!)

any ideas?

many thanks,

jim.

5:13 pm on Feb 8, 2005 (gmt 0)

New User

10+ Year Member

joined:Jan 20, 2005
posts:15
votes: 0


I had a problem similar to this. To solve it I moved away from classes and to ID tags. As a simple example to your ploblem:

<style type="text/css">
#actuator a{
text-decoration: none;
}
</style>
<body>
<p id="actuator">
<a href="#">Actuator link</a>
</p>
<p>
<a href="#">Normal link</a>
</p>
</body>

where the <p> tags are you could use anything <table> <div> etc.

5:28 pm on Feb 8, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 30, 2003
posts:54
votes: 0


thanks Soave,

unfortunately I am already using an id tag on the top navigation links so if I am not mistaken I cannot use another? (anyway I tried and it didn't work - but maybe I did something wrong)

jim.

5:32 pm on Feb 8, 2005 (gmt 0)

New User

10+ Year Member

joined:Jan 20, 2005
posts:15
votes: 0


Could you post your relevant HTML and CSS code?
5:49 pm on Feb 8, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 30, 2003
posts:54
votes: 0


hi Soave,

thanks again for trying to help but i'm going to be lazy on this one - if IE wants to use my a class, i'll let it and use a new a.new class for the purposes of the original a class.

Hope that makes sense!

jim.