Opacity: The opacity property sets the opacity level for the element. (Setting opacity for elements makes the entire element transparent, including its contents.)
Opacity Definition:
element{opacity:0.5} //makes the element and it content 50% transparent
The opacity level describes the level of transparency, where 1 is not transparent at all, 0.5 - 50% is transparent, and 0 is completely transparent.
Alpha channel RGBA color values ββare an extension of RGB color values ββwith an alpha channel that determines the opacity of an object. Background : rgba (Red,Green,Blue,Opacity) (Setting the rgba element only makes the background element transparent, leaving its contents as they are.)
Rgba: background definition:
element{ background:rgba(40, 41, 42, 0.5); }
The RGBA color value is indicated by: rgba (red, green, blue, alpha). The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque).
To convert the hexadecimal color value to rgb: Here
Additional Information:
RGBA color values ββare supported in IE9 +, Firefox 3+, Chrome, Safari, and Opera 10+.
Suman kc
source share