0

I enjoy using the Extended Colour Keywords from http://www.w3.org/TR/css3-color/#svg-color, but I'd like to be able to specify the opacity/alpha-channel for my color/border-color/background-color, all without having to resort to the decimal or hexadecimal colour specs themselves (e.g., still referring to the primary colour by its name/keyword).

Is there an alternative to rgba() that lets you specify the desired opacity of a keyword-based colour?

TylerH
  • 20,799
  • 66
  • 75
  • 101
cnst
  • 25,870
  • 6
  • 90
  • 122

1 Answers1

0

Agree with @LGSon, but you can use opacity: alpha its css3 syntax, but it will cause the content to have inherit the opacity as well.

Bhimbim
  • 1,348
  • 2
  • 19
  • 15