Result with opacity:
Result with rgba():
Notice how the text gets transparent as well as the background color when using the opacity property.
<style> div { background: rgb(0, 128, 0); } div.first { background: rgba(0, 128, 0, 0.1); } div.second { background: rgba(0, 128, 0, 0.3); } div.third { background: rgba(0, 128, 0, 0.6); } </style>
<div style="opacity:0.1;"> <div style="opacity:0.3;"> <div style="opacity:0.6;">