Dumb CSS: cursor pointer or hand?

So I had an occasion to peruse someone else’s CSS today, when I came across this peculiar construct:

.someClass
{
  cursor: pointer;
  cursor: hand;
}

Do what? Set the cursor to “pointer” and then set it to “hand”? Whut?

After a bit of research, I found out that this is accepted provided that you are supporting IE5 and IE5.5 users. Double whut?

Back to the Olde Days. It seems that in those times, Microsoft had gone its own way with regard to displaying a pointing cursor, usually shaped like a hand with extended index finger. They used, well, hand. Everyone else, pointer. With IE6, Microsoft added cursor:pointer (whereas everyone else allowed cursor:hand as a grudging alternative, it seemed, even though it was off-spec). So, in essence, from IE6 onwards, cursor:pointer was – and is – the way to go. The extra CSS for the hand cursor is not standard and is ignored by modern browsers. (See here on the quirksmode site.)

Hence, a gentle nudge, dear reader. Check your own CSS and get rid of those cursor:hands. You really don’t want users who are still relying on IE5 or IE5.5 for their browser, do you?

Album cover for The Very Best of Electric Light OrchestraNow playing:
Electric Light Orchestra - Here Is The News
(from The Very Best of Electric Light Orchestra)


Loading similar posts...   Loading links to posts on similar topics...

No Responses

Feel free to add a comment...

Leave a response

Note: some MarkDown is allowed, but HTML is not. Expand to show what's available.

  •  Emphasize with italics: surround word with underscores _emphasis_
  •  Emphasize strongly: surround word with double-asterisks **strong**
  •  Link: surround text with square brackets, url with parentheses [text](url)
  •  Inline code: surround text with backticks `IEnumerable`
  •  Unordered list: start each line with an asterisk, space * an item
  •  Ordered list: start each line with a digit, period, space 1. an item
  •  Insert code block: start each line with four spaces
  •  Insert blockquote: start each line with right-angle-bracket, space > Now is the time...
Preview of response