{"id":5762,"date":"2010-03-17T04:55:23","date_gmt":"2010-03-17T11:55:23","guid":{"rendered":"http:\/\/css-tricks.com\/?p=5762"},"modified":"2022-02-04T07:26:20","modified_gmt":"2022-02-04T15:26:20","slug":"pseudo-class-selectors","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/pseudo-class-selectors\/","title":{"rendered":"Meet the Pseudo Class\u00a0Selectors"},"content":{"rendered":"\n

Pseudo class selectors are CSS selectors with a colon preceding them. You are probably very familiar with a few of them. Like hover:<\/p>\n\n\n\n

a:hover {\n  \/* Yep, hover is a pseudo class *\/\n}<\/code><\/pre>\n\n\n\n

They are immensely useful in a variety of situations. Some of them are CSS3, some CSS2… it depends on each particular one. Outside of IE, they have great browser support. In IE land, even IE8, support is pretty barren. However, the IE9 preview has full support for them. The link-related ones work but not much else. Let’s take a brief look at each one of them. Don’t worry, there aren’t that many.<\/p>\n\n\n\n\n\n\n