I am trying to set the background color, but I want to use the alpha channel. Is there a way to support new browsers with transparency and ensure that older browsers display the correct color when transparency is not an option?
For example, the second value will be enough or will be canceled:
background-color: rgb(255, 0, 0);
background-color: rgba(255, 0, 0, 0.5);
UPDATE:
I do not want to maintain the transparency of older browsers. I want to make sure that older browsers use the correct background color and newer browsers, if they support it, show the alpha channel.
source
share