Opacity

opacity sets the opacity of an element.

CSS Properties

opacity

Sets the opacity of an element. (As a whole, including its content).

Specify a number between 0 and 1 (inclusive).

<div id="opacity-example">
  Lorem ipsum dolor sit amet
</div>
#opacity-example {
  color: lime;
  background-color: blue;
  opacity: 0.3;
}
| LIVE PREVIEW
Lorem ipsum dolor sit amet

References