css hack
<style>
#test
{
width:300px;
height:300px;
background-color:blue;/*firefox*/
background-color:red\9;/*allie*/
background-color:yellow\0;/*ie8*/
+background-color:pink;/*ie7*/
_background-color:orange;/*ie6*/
}
:root#test{background-color:purple\9;}/*ie9*/
@mediaalland(min-width:0px){#test{background-color:black\0;}}/*opera*/
@mediascreenand(-webkit-min-device-pixel-ratio:0){#test{background-color:gray;}}/*chromeandsafari*/
</style>