Can anyone tell me what is the color code for transparency in CSS like white = "#FFFFFF"? As I am using following code, to convert the color codes into int:
Color color = ColorTranslator.FromHtml(hex);
return (int)((color.R << 16) | (color.G << 8) | (color.B << 0));
There is no hex code for transparency. For CSS, you can use either transparent
or rgba(0, 0, 0, 0)
.
Or you could just put
background-color: rgba(0,0,0,0.0);
That should solve your problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With