Treehouse: Grow your CSS skills. Land your dream job.

LoVe HAte. Link Style Ordering: What about :focus?

  • # September 25, 2012 at 4:06 am

    I think everyone knows the “LoVe HAte” link ordering, but where should :focus come into it? It is merely a keyboard-based version of :hover?

    Should the proper version be;

    a:link { }

    a:visited { }

    a:hover, a:focus { }

    a:active { }

    # September 25, 2012 at 4:18 am

    LoVe Fuck HAte ?
    Sorry, it was easy. :D

    Yeah, :focus should probably stand next to :active. Maybe after :active. First you click on the link (:active) then it becomes focused (:focus).

    # September 25, 2012 at 4:19 am

    Ha! Nice. Sounds like my love life at the moment.

    # October 1, 2012 at 11:08 am

    And forever more, it shall be known.

    (Also yes, I also *always* combine :hover and :focus)

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

You must be logged in to reply to this topic.