Posted By

c4ptivate on 01/24/10


Tagged

ie png CSS3 rgba


Versions (?)

RGBA — IE Fallback


 / Published in: CSS
 

URL: http://925html.com/code/rgba-ie-fallback/

  1. <style type="text/css">
  2.  
  3. body {
  4. background: url(pattern.png);
  5. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  6. }
  7. p {
  8. color: rgb(225, 225, 225);
  9. background: rgba(156, 217, 107, 0.25) none;
  10. width: 400px;
  11. margin: 48px auto;
  12. padding: 32px 40px;
  13. }
  14. p:hover {
  15. background: rgba(156, 217, 107, 0.50) none;
  16. }
  17.  
  18. </style>
  19.  
  20. <!--[if lte IE 8]>
  21. <style type="text/css">
  22.  
  23. p {
  24. background: transparent url(green-25.png);
  25. }
  26. p:hover {
  27. background: transparent url(green-50.png);
  28. }
  29.  
  30. </style>
  31. <![endif]-->

Report this snippet  

You need to login to post a comment.