+ 2

Why is the text color in css written as rgba, what is the a standing for...why not just rgb

19th Nov 2017, 12:50 PM
Ephraim Tembo
3 odpowiedzi
+ 18
rgb = red,green,blue rgba = red,green,blue,alpha(transparency)
19th Nov 2017, 12:51 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
It is for opacity (the 4th parameter). It goes from 0 (full transparent) to 1. Rgb is like rgba but the opacity is set to 1 and we can't adjust it.
19th Nov 2017, 1:02 PM
Αητοιπe
Αητοιπe - avatar
+ 1
thanks
19th Nov 2017, 2:06 PM
Ephraim Tembo