This code works fine in Firefox but not in IE, please give a solution only using CSS (No jquery or javascript), the problem begins when you click on the span inside the DIV!
<style type="text/css">
.tools {
cursor:pointer;
}
.tools {
background-color:#aaa;
padding:5px;
}
.tools span {
background-color:green;
color:white;
}
.tools:hover {
background-color:#ccc;
}
.tools:hover span {
background-color:red;
}
.tools:active {
background-color:#333;
color:#fff;
}
.tools:active span {
background-color:blue;
}
</style>
</head>
<body onselectstart="return false;" >
<div class="tools" style="width:100px; height:20px;">
<span>
Hello world...
</span>
</div>
</body>