opacity

The opacity of an element is controlled by this CSS property. The opposite of transparency, opacity is the degree to which content behind an element is hidden.

Example

Initial value 1.0
Applies to all elements in the page

Syntax

  
opacity: 0.8;
  

Values

A number between 0 and 1 or percentage from 0% to 100%.

Browser support

opacity1121992
percentages787970

We use cookies to improve your experience. Learn more in our Privacy policy.

×