This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > CSS not working for links in I.E. 6.0





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CSS not working for links in I.E. 6.0
daveb45

2004-08-10, 11:17 pm

I'm having a problem getting I.E. 6.0 (on PC) to use new styles I've set up for
links (see the code below).
It's only for the links and it's only for the resting (non-hover) state. In
other words, whatever is set
for the links in the browser settings is how the link looks until I mouse over
it - then the new style kicks in,
and it works great on all the mac browsers. Any one know how I force I.E. to
cooperate?

thanks in advance... Dave


a.link2:link {
font-family: sans-serif, Arial, Helvetica;
font-size: 14px;
font-weight: bold;
color: #003399;
}
a.link2:hover {
font-family: sans-serif, Arial, Helvetica;
font-size: 14px;
font-weight: bold;
color: #99CCFF;
}



Al Sparber- PVII

2004-08-10, 11:17 pm

daveb45 wrote:
> I'm having a problem getting I.E. 6.0 (on PC) to use new styles I've
> set up for links (see the code below).
> It's only for the links and it's only for the resting (non-hover)
> state. In other words, whatever is set
> for the links in the browser settings is how the link looks until I
> mouse over it - then the new style kicks in,
> and it works great on all the mac browsers. Any one know how I force
> I.E. to cooperate?
>
> thanks in advance... Dave
>
>
> a.link2:link {
> font-family: sans-serif, Arial, Helvetica;
> font-size: 14px;
> font-weight: bold;
> color: #003399;
> }
> a.link2:hover {
> font-family: sans-serif, Arial, Helvetica;
> font-size: 14px;
> font-weight: bold;
> color: #99CCFF;
> }


That's an inefficient way to make link styles, but the problem is likely
to do with the "visited" pseudoclass not being declared. This should do
the trick:

a.link2:link, a.link2:visited {
font-family: sans-serif, Arial, Helvetica;
font-size: 14px;
font-weight: bold;
color: #003399;
}

--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/




daveb45

2004-08-10, 11:17 pm

>That's an inefficient way to make link styles, but the problem is likely
>to do with the "visited" pseudoclass not being declared. This should do
>the trick:


Yes sir, that was it! It needed a :visited pseudoclass in order to work
correctly with IE 6.0

thanks again to those who took the time to make comments and/suggestions.


Dave


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews