uses of rgba?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

uses of rgba??

4th Jul 2016, 5:46 PM
Shubham Shivalkar
Shubham Shivalkar - avatar
3 Answers
+ 1
RGBa is a way to declare a color in CSS that includes alpha transparency support. It looks like this: This allows us to fill areas with transparent color; the first thee numbers representing the color in RGB values and the fourth representing a transparency value between 0 and 1 (zero being fully transparent and one being fully opaque). We have long had the opacity property, which is similar, but opacity forces all decendant elements to also become transparent and there is no way to fight it (except weird positional hacks ) Cross-browser opacity is also a bit sloppy.
5th Jul 2016, 6:25 AM
sagir
sagir - avatar
0
exemple div { background : rgba(200 , 5 }
5th Jul 2016, 6:26 AM
sagir
sagir - avatar
0
Thank yu...
5th Jul 2016, 9:41 AM
Shubham Shivalkar
Shubham Shivalkar - avatar