With the "CSS Opacity Generator" you can generate correct CSS code for CSS opacity in few seconds.
You only have to move the slider to change the opacity. The code will be automatically generated.