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

retain hyperlink color ?

P: 14
Hi All,

How to retain hyperlink color when clicked?
Nov 12 '08 #1
Share this Question
Share on Google+
7 Replies


acoder
Expert Mod 15k+
P: 16,027
Set a:visited to the same colour as a:link.
Nov 12 '08 #2

P: 88
This is not a good practice actually, please read: Change the Color of Visited Links
Nov 15 '08 #3

Expert 100+
P: 397
This is not a good practice actually, please read: Change the Color of Visited Links
Good practice is a matter of opinion. Some of us don't buy Nielsen's flaky statistics on this matter, or the resultant user confusion the method he suggests yields.

The method Acoder suggests is common practice nowadays.

As for myself, I use neither Nielsen's or the "common practice" method as there is no need to set a:visited in the first place, or at all:
Expand|Select|Wrap|Line Numbers
  1. a { 
  2. color: gray;
  3. text-decoration: none;
  4. }
  5. a:hover, 
  6. a:focus,
  7. a:active  
  8. {
  9. color: red;
  10. }
  11.  
  12.  
Nov 15 '08 #4

P: 88
Okay, can you tell me which part(s) you disagree in Nielsen's following arguments?

The oldest usability guideline for any type of navigational design is to help users understand where they've been, where they are, and where they can go (past, present, and future). The three are somewhat interrelated: a good grasp of past navigation helps you understand your current location, since it's the culmination of your journey. Knowing your past and present locations in turn makes it easier to decide where to go next.
Observe carefully, though, and you'll notice that users frequently move in circles. They'll visit the same page multiple times -- not because they want to, but because they don't realize that they've already been there. Users will give up when they've tried most links in a list, even though there's one link that they haven't tried; if the links don't change colors, users don't realize that there's only one unvisited link remaining.
I believe, it would be a lot easier to browse bytes.com, if visited threads in lists have a different color for instance.


Good practice is a matter of opinion. Some of us don't buy Nielsen's flaky statistics on this matter, or the resultant user confusion the method he suggests yields.

The method Acoder suggests is common practice nowadays.

As for myself, I use neither Nielsen's or the "common practice" method as there is no need to set a:visited in the first place, or at all:
Nov 15 '08 #5

Expert 100+
P: 397
In an ideal world having a different color for visited links is possibly a good idea. In the real world, a different color for visited links yields an extra layer of color and resultant confusion for some users. In other words, rather than solving a problem, it merely creates a bigger problem.

Any discipline offers more than one way to achieve goals. And it is up to site authors to chose which method best meet their users needs. In this sense, it is good that the OP has been given more than one opinion. Let's leave it to the OP to make a final decision about which way to go for his site and its users...
Nov 15 '08 #6

P: 88
In an ideal world having a different color for visited links is possibly a good idea. In the real world, a different color for visited links yields an extra layer of color and resultant confusion for some users. In other words, rather than solving a problem, it merely creates a bigger problem.
It does not have to be a different color, it might be any other (visual / structural) way to distinguish visited links, depending on the overall site design.

Any discipline offers more than one way to achieve goals. And it is up to site authors to chose which method best meet their users needs. In this sense, it is good that the OP has been given more than one opinion. Let's leave it to the OP to make a final decision about which way to go for his site and its users...
I agree but why not just pointing out our opinions, maybe it helps anyone who is not aware of such design practices.
Nov 16 '08 #7

Expert 100+
P: 397
I agree but why not just pointing out our opinions, maybe it helps anyone who is not aware of such design practices.
Granted. And is this not what we have just done?
Nov 16 '08 #8

Post your reply

Sign in to post your reply or Sign up for a free account.