In the code given below, I have applied opacity to the box in the center, which contains some text. Now my problem is I don't want the text to be opaque. So how do I nullify text opacity without putting it in a different <div>
?
.r2{
height:20%;
width: 40%;
background-color: #f3fafe;
position: fixed;
margin: 0 auto;
top:40%;
left:30%;
opacity: 0.7;
border-top-left-radius: 30px;
border-bottom-right-radius: 30px;
box-shadow: 5px 5px 5px rgba(110,110,110,0.7);
transition: transform 1s;
}
This is the style I have given to the box.