how to do opacity all the background css code example
Example 1: css opacity
.div{
opacity: 0.8; /* 1 means fully visible, 0 means invisible */
}
Example 2: background color with opacity
h1 {background-color:rgba(255,0,0,0.3);}
Example 3: image opacity in html
img {
opacity: 0.5;
}
Example 4: set opacity of background image
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 ...