Reputation: 12512
I am trying to figure out why my CSS does nopt work in IE (v.9).
I have the following CSS:
#cq div:hover {
background-color: #fff;
cursor: pointer
}
and HTML
<div id="cq">
<div>item</div>
<div>item</div>
</div>
It works fine in all other browsers.
Upvotes: 0
Views: 103
Reputation: 2737
The problem may be that your page is running in Quirks mode. Try changing your doctype to:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
More on browser modes: http://hsivonen.iki.fi/doctype/
Upvotes: 1