jasonkarns
9/30/2009 - 2:44 PM

Cross-Browser RGBa

Cross-Browser RGBa

* {
    /* Solid color fallback for no-RGBa support */
    background: rgb(200, 200, 200);
    /* RGBa declaration */
    background: rgba(200, 200, 200, 0.5);
}
/* IE8: RGBa value in hex: aaRRGGBB */
* {
    background:transparent;
    -ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#7FC8C8C8,endColorstr=#7FC8C8C8)";
}
/* IE 7 and below: RGBa value in hex: aaRRGGBB */
* {
    background:transparent;
    zoom: 1;
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7FC8C8C8,endColorstr=#7FC8C8C8);
}