Scipion
Scipion

Reputation: 11888

rgba not compatible with IE7?

In my CSS codes, I am changing the background using rgba :

background-color: rgba(0, 0, 0, 0.5);

It is working well on every browser but not on IE7 where the background seems simply to be transparent.

Anything I can do to make it works with IE7 ?

Upvotes: 0

Views: 239

Answers (1)

Seregmir
Seregmir

Reputation: 546

Create a fallback for IE7 since it's not working in IE8 and below (http://caniuse.com/#search=rgba())

div {
  background: rgb(0, 0, 0); /* The Fallback */
  background: rgba(0, 0, 0, 0.5); 
}

Upvotes: 1

Related Questions