Thursday, December 30, 2010 (Graceful degradation for the background property)

I’ve found that this set of properties degrades best if you enjoy using RGBA background-color via the background shorthand property. IE7/8 and all the good ones.

  1. .foo {
  2.   background-color: #000;
  3.   background: rgba(0,0,0,.6) url(foo.png) 0 0 no-repeat;
  4.   background-repeat: no-repeat;
  5.   }

Posted in interweb

Leave a Comment:

HTML allowed: <a href=""> <strong> <em> <code>

Powered by WordPress using the Minimal, Really Theme. Inspired by Things