CSS Hack: Using RGBA in IE
background-color: rgba(r,g,b,alpha) is not supported by IE browsers up to IE9. But there is a workaround- by converting rgba() into #argb and using gradient filter.
Once rgba() is converted to #argb, you can then use the gradient opacity filter like this:
More information on rgba() to #argb conversion and a simple conversion utility can be found here: http://kilianvalkhof.com/2010/css-xhtml/how-to-use-rgba-in-ie/.
Once rgba() is converted to #argb, you can then use the gradient opacity filter like this:
background:none; -ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#26ffffff,endColorstr=#26ffffff); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#26ffffff,endColorstr=#26ffffff); zoom: 1;
Genius!!! You are absolute genius!!
ReplyDeleteI’ve been looking for ages to fix this IE transparency bug. The only code that works was yours.
Thanks a lot for sharing
Hi Tiago,
DeleteI'm glad my solution has helped you.
Cheers