Feed View | 456 Berea Street

456 Berea Street

Roger Johansson is a web professional specialising in web standards, accessibility, and usability.

Subscribe | Retrun to feeds | Users subscribed: 2 | Last Updated: Dec 20 2008, 11:25:20

The order of link pseudo-classes matters

18 Nov 2008 19:35:44 | Roger Johansson | CSS

Common knowledge to most who have been working with CSS for a few years, but perhaps not something that relative newcomers have come across yet: the order in which you define the different link states affects the end result.

I prefer the following order: :link, :visited, :hover, :focus, :active.

Eric Meyer explains why the order matters and why he also prefers defining the states in this order in Link Specificity, Ordering the Link States, and Who Ordered the Link States?.

Posted in .





 



Sign in to NewsAlloy
E-mail 
Password 
  Remember me 



News Alloy © Copyright 2005 - 2008 Mobispine AB. All Rights Reserved.