div {
background-color: yellow;
}
.light {
opacity: 0.2; /* Der Text kann kaum über dem Hintergrund gelesen werden */
}
.medium {
opacity: 0.5; /* Der Text ist besser über dem Hintergrund lesbar */
}
.heavy {
opacity: 0.9; /* Der Text ist sehr deutlich über dem Hintergrund lesbar */
}
The following example sets the opacity for the background color and not the text: 100% opacity. 60% opacity. 30% opacity. 10% opacity. You learned from our ...