If you use opacity , the entire div, including text, will be at this opacity level.
If your visitors use Webkit (Chrome, Safari) or Gecko (Firefox) (probably Presto (Opera), but I'm not sure), you can use:
#divToMakePartiallyOpaque {background-color: rgba(150,150,150,0.5); }
In cases where the red, green, and blue channels are set to 150 and the alpha is set to 0.5 (halfway between fully transparent and completely opaque).
It is also possible to use a partially transparent background image, as indicated elsewhere.
source share