The CSS property used to specify the transparency of an element is - code example
Example 1: css opacity
.div{
opacity: 0.8; /* 1 means fully visible, 0 means invisible */
}
Example 2: define element opacity css
div {
opacity: 0.5;
}
.div{
opacity: 0.8; /* 1 means fully visible, 0 means invisible */
}
div {
opacity: 0.5;
}