homepage Welcome to WebmasterWorld Guest from 54.204.94.228
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
link class being ignored in ie - working in firefox
billybonds




msg:1181992
 4:15 pm on Feb 8, 2005 (gmt 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.

 

Soave




msg:1181993
 5:13 pm on Feb 8, 2005 (gmt 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.

billybonds




msg:1181994
 5:28 pm on Feb 8, 2005 (gmt 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.

Soave




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

Could you post your relevant HTML and CSS code?

billybonds




msg:1181996
 5:49 pm on Feb 8, 2005 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved