1. cliveportman
  2. /code
  3. /rgb-transparency-with-css

RGB transparency with CSS

Use as an alternative to opacity where you don't want the child elements to be affected, just the background of the element in question:

background: rgb(50, 50, 50);
background: rgba(50, 50, 50, 0.7);