Welcome to WebmasterWorld Guest from 54.144.126.195

Forum Moderators: not2easy

Message Too Old, No Replies

link class being ignored in ie - working in firefox

     

billybonds

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

10+ Year Member



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.

Soave

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

10+ Year Member



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.

billybonds

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

10+ Year Member



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.

Soave

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

10+ Year Member



Could you post your relevant HTML and CSS code?

billybonds

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

10+ Year Member



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month