So what is actually opacity? CSS3 Opacity defines a transparency level of an element. The property value of opacity is range from 0 to 1.
CSS3 Opacity Example
Opacity applied at 0.7
Opacity applied at 0.4
<style type="text/css"> .example1, .example2{ padding:30px; text-align:center; opacity:0.7; background:#af1111; margin-bottom:20px; } .example2{ opacity:0.4; } </style> <div class="example1"> Opacity applied at 0.7 </div> <div class="example2"> Opacity applied at 0.4 </div>
CSS3 Opacity Generator
Alternatively, you can see our interactive demo by using our CSS3 Opacity Generator.