There are instances when you think it would be a great idea to change the opacity of the background color of a div without affecting the text, image, and other web properties present inside the same div of HTML and CSS.
Answer:
What you usually do is specify background color in CSS using hex, i.e. Hexadecimal values like this:
.navbar {background-color: #ffffff;}
But if you use RGBA to specify background color in CSS, you can utilise its feature called alpha, i.e. RGBA is a short form for Red – Green – Blue – Alpha
(more…)