Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS LoVe HAte. Link Style Ordering: What about :focus?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #40001

    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 { }

    #110738
    Kitty Giraudel
    Participant

    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).

    #110739

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

    #111089
    Chris Coyier
    Keymaster

    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)
  • The forum ‘CSS’ is closed to new topics and replies.