CSS Tutorial

The language for styling web pages.

CSS Opacity

CSS Opacity

The opacity property sets the opacity level of an element. It ranges from 0.0 (fully transparent) to 1.0 (fully opaque). The rgba() function provides transparency for just the background color without affecting child elements.

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics