RGBa Background Color


/ Published in: CSS
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.