Posted By

dkl3in on 02/21/11


Tagged

opacity background CSS3 transparent


Versions (?)

RGBa Background Color


 / Published in: CSS
 

RGBa is a way to declare a color in CSS that includes alpha transparency support. Filter for IE could be add per conditional comment

  1. #element {
  2. background: rgb(65, 200, 160); /* Fallback */
  3. background: rgba(65, 200, 160, 0.5);
  4. }
  5.  
  6. .ie6-8 #element{
  7. background:transparent;
  8. filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#40c8a050,endColorstr=#40c8a050);
  9. zoom: 1;
  10. }

Report this snippet  

You need to login to post a comment.