By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,624 Members | 2,229 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,624 IT Pros & Developers. It's quick & easy.

CSS and Hyperlinks

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
> 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.