Jump to content

Maybe useful: RGBa & HSLa CSS Generator for Internet Explorer


Recommended Posts

All,

Maybe the following link is useful for Presta-users: http://kimili.com/journal/rgba-hsla-css-generator-for-internet-explorer/

You can use this online RGBa converter to generate code which is supporte by IE (7/8 and up). I found this site because I'm facing a problem using RGBa for my center_column background. I noticed this background is only visible in safari/Chrome/Firefox, but not in IE :-(

This site generates code to converts the rgba to conditinal comments to use with IE. The only issue I'm still looking for an answer is where to put the cond comm code. You cannot put it in global.css, but I think I have to create a separe php (?) file for this, but I don't know how to link global.css to this code.

If somebody knows, please post it here so people can use this...

Link to comment
Share on other sites

found out adding the following in global.css works:

original:

background: rgba(255, 255, 255, 0.5);



changed to:

background: rgba(255, 255, 255, 0.5);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#7FFFFFFF,endColorstr=#7FFFFFFF)"; /* IE8 */



This works, for IE8.

For IE6&7;the last line should be:

filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#7FFFFFFF,endColorstr=#7FFFFFFF)"; /* IE6&7;*/




But, I would like to add both rules to support IE6/7 and 8.

How to do that?

Link to comment
Share on other sites

×
×
  • Create New...