I’ve been playing around with CSS3 a lot lately and as always, IE6 is a major pain in the ass!

I was using the new RGBA property and noticed that IE totally ignores it. The colour displayed this way is non-existent.

The fix

So I began experimenting.

I noticed that, when the standard RGB or Hexidecimal value is placed in the CSS as well, IE uses that value to display the colour.

But depending on the stacking order, depends how more standards compliant browsers display the colour.

If the RGBA value is first and the RGB value second.

e.g.
background: rgba(255, 255, 255, 0.5);
background: rgb(255, 255, 255);

All browsers display the RGB colour.

However.

If the RGBA value is second.

e.g.
background: rgb(255, 255, 255);
background: rgba(255, 255, 255, 0.5);

Safari/Chrome & Firefox will display the RGBA colour whilst IE displays the RGB colour.

That’s a nice neat little fix. Hope you find it useful.