Grow your CSS skills. Land your dream job.

a:visited Problem/Bug

  • # May 21, 2012 at 2:13 pm

    Hello Everyone,
    I’m learning CSS so found this website very useful.
    But while learning I came to a Bug or a Problem don’t know why this code is not working :

    < !DO

    CTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



    link


    I didn’t get that why a:visited { text-decoration: line-through or underline is not working ?

    If you can help me then please :)
    Thanks

    # May 21, 2012 at 2:34 pm

    Sorry that I don’t have time to dig deeply in to this, but 2 things come to mind:

    1) Long standing advice is to style your link states in this order:
    Link
    Visited
    Hover
    Focus
    Active
    (Think Lord Vader’s Handle Formerly Anakin)

    2) And I seldom bother styling visited links anymore because some modern browsers have stopped supporting it (out of privacy concerns – unscrupulous folks can target a visited style to capture visitors’ browsing history).

    # May 21, 2012 at 2:49 pm

    Ok thanks :)

    # May 22, 2012 at 1:42 am

    @snillor that’s awesome

    # May 22, 2012 at 2:02 am

    I think that you are encountering a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=645786

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".