views:

152

answers:

2

I've never really paid this close attention but I'm getting the following error:

Unknown pseudo-element or pseudo-class :hover 

on the following code

A:hover { COLOR: #F56655; text-decoration: underline; }

Since when has :hover not been valid css and what is the alternative?

I have seen this used everywhere...

+1  A: 

I believe it's just your capital A, use a lowercase and should be fine.

Chris
+1  A: 

Double check your validation rules, testing here I get no errors, using CSS 2.1:

http://jigsaw.w3.org/css-validator/

If you're testing CSS 1.0 compliance, you'll get your exact error, since :hover wasn't in CSS 1.0, it was added in 2.0.

Nick Craver
I'm testing WITH http://validator.w3.org/mobile for mobile ... I assume mobile css doesn't like hover
php-b-grader
You can always check what CSS attributes are compatible with mobile devices here: http://www.quirksmode.org/m/css.html
Ant Ali