467,874 Members | 1,772 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,874 developers. It's quick & easy.

CSS and Hyperlinks

I have a top nav and a left nav.

I want the styles on each to be different.

I got it to work just fine on NN7 but with IE6 the 'visted' colour
(not specified anywhere on my page) takes precedence of the <style>
entry.

Example here : http://217.34.24.184/

Thanks in advance for somebody pointing out my error.
Jul 20 '05 #1
  • viewed: 1641
Share:
4 Replies
dc@sell365.com (Dave) wrote:
I have a top nav and a left nav.

I want the styles on each to be different.

I got it to work just fine on NN7 but with IE6 the 'visted' colour
(not specified anywhere on my page) takes precedence of the <style>
entry.
Depends what you styles are. If you've only defined a {} or a:link {}
(regardless of whether you use a class to define the two different
sets of links) then the browser's defaults for a:visited should apply
when the link is in the visited state.
Example here : http://217.34.24.184/


"Directory Listing Denied
This Virtual Directory does not allow contents to be listed."

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2
Sorry, link was crap :/

http://www.myfootballworld.org.uk/page1.htm

As far as I know I have defined all I need to.

Maybe you can take a look at the source?

Im thinking that the norm is to _not_ prevent the visiter from knowing
which links they have previously visited and therefore IE overrules
what I am trying to do?

The strange thing is that if I set a link to be for an external
webpage opening in a new browser, the link works fine.

Thanks in advance.
Jul 20 '05 #3
dc@sell365.com (Dave) wrote:
Sorry, link was crap :/

http://www.myfootballworld.org.uk/page1.htm

As far as I know I have defined all I need to.

Maybe you can take a look at the source?
a.leftmenu:visted

Spot the missing letter.
The CSS validator would have told you as much:
http://jigsaw.w3.org/css-validator/v...g.uk/page1.htm
Im thinking that the norm is to _not_ prevent the visiter from knowing
which links they have previously visited and therefore IE overrules
what I am trying to do?


The norm is to distinguish between visited and unvisited links.
So what you are trying to do is bad practice. But IE isn't sabotaging
you, your own typing is.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #4
> The norm is to distinguish between visited and unvisited links.
So what you are trying to do is bad practice. But IE isn't sabotaging
you, your own typing is.

Thanks Steve, that would explain it ! On reflection I will be using a
diff colour for visited, just not red :)

Rgds
Dave
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Viken Karaguesian | last post: by
1 post views Thread by jez123456 | last post: by
3 posts views Thread by prinsipe | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.