The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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" "">

    Untitled Document


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

    If you can help me then please :)

    # 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:
    (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

    This reply has been reported for inappropriate content.

    @snillor that’s awesome

    # May 22, 2012 at 2:02 am

    I think that you are encountering a bug:

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed