CSS
CSS OpacityCSS Opacity
CSS opacity controls the transparency of an entire element.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
CSS opacity makes elements see-through. Developers use it to fade images or create subtle overlay effects. The property affects the element and everything inside it, including text and children elements.
Example
Example
Key Points
- Opacity values range from 0.0 to 1.0.
- A value of 0.0 makes the element completely invisible.
- A value of 1.0 makes the element fully solid.
- Child elements inherit the transparency.