Effects
opacity
Learn how to use the CSS opacity property.
CSS opacity
The opacity property sets the opacity for an HTML element.
Syntax
.element {
opacity: 0.5;
}
HTML Context Example
<div class="card">
This is a styled element.
</div>
<style>
.card {
opacity: 0.5;
}
</style>
Notes
Experiment in the CSS playground to see how this affects layout and styling.