div { background-color: rgb(255,0,0); opacity: 1; } div { background-color: rgba(255,0,0,1); }
What is the difference between the above two?
Opacity sets the opacity value for an element and all of its children; While RGBA sets the opacity value only for a single declaration.
This is well explained here. http://www.css3.info/introduction-opacity-rgba/
1.4m articles
1.4m replys
5 comments
57.0k users