SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2007
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    a:visited color Question

    For years now I've been putting the usual 4 pseudo's in the usual order:

    link
    visited
    hover
    active

    I've made the visited color the same as the link color for a while now... however, just messing around, when I tried to make visited a different color, and after I click on it and hit "Back" it hasn't changed... same color as before... what's up? Does hover or active over-ride it? (I use FF v2)

    But then again, does anyone have any aesthetic opinions? Does having a different color visited link make it look "90's" ? Is that why seemingly every site doesn't have a different visited color anymore?

    Can I eliminate the visited pseudo class from my style.css altogether?

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Seabiscuit View Post
    the usual 4 pseudo's
    There are 5 of them. Don't forget :focus. It's really important for those of us who navigate mainly by keyboard.

    Quote Originally Posted by Seabiscuit View Post
    I tried to make visited a different color, and after I click on it and hit "Back" it hasn't changed...
    It's possible that the browser uses a cached version of the page when you use the Back button, to speed things up. If you reload the page, the visited link should change colour.

    Quote Originally Posted by Seabiscuit View Post
    But then again, does anyone have any aesthetic opinions? Does having a different color visited link make it look "90's" ? Is that why seemingly every site doesn't have a different visited color anymore?
    Differentiating between visited and unvisited links is an important accessibility issue for some user groups. It's also an important usability issue for an even larger user group. Aesthetics should not take precedence over accessibility and usability on most sites, in my opinion. Of course, I'm not a graphics designer.

    I usually make an exception for navigation menus, because different link colours there can be confusing. But for other links I always make sure that it's clearly visible whether they're visited or not.
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2007
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! As best I can find, :focus goes in between visited and hover?
    (it works for me)

    Otherwise, yea I'm having trouble getting a different visited color to show. Clicking on it, then going back, then hitting refresh doesn't work. In IE7 I can click on the link, then copy+paste the URL at the top of the browser (bringing me back to the first page) and it'll show the visited color, but not in FF.

  4. #4
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Seabiscuit View Post
    As best I can find, :focus goes in between visited and hover?
    I depends on what behaviour you want. I normally do it that way, though.

    Quote Originally Posted by Seabiscuit View Post
    Otherwise, yea I'm having trouble getting a different visited color to show. Clicking on it, then going back, then hitting refresh doesn't work.
    I just did a test, and it works for me in Opera and FF even without a refresh.
    Birnam wood is come to Dunsinane

  5. #5
    Design Your Site Team bronze trophy Erik J's Avatar
    Join Date
    May 2007
    Location
    Countryside, Sweden
    Posts
    3,407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Seabiscuit View Post
    ... and it'll show the visited color, but not in FF.
    Can it be caused by an old setting in your FF; settings>general>history is set to zero?
    At the time there was a privacy-recommendation to set history to zero for FF1.6 IIRC.
    Happy ADD/ADHD with Asperger's

  6. #6
    SitePoint Zealot
    Join Date
    Nov 2007
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, thanks, that was it... I had the History set to zero a long time ago... so I changed it to 1 day, and the visited color shows up fine. I suppose I had gotten so used to never seeing a visited color because I've had my history set to zero for so long. I'll leave it at 1 day and see how many sites use visited colors to get a feel for it again.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •