I notice my text color is fading together with the opacity of the transparent box. But i don't really know what is the proper code to separate my text from the opacity. Sorry if this question sounds abit stupid.
body {
background-color: gray;
}
.container {
position: relative;
text-align: center;
}
.content {
position: absolute;
top: 20%;
left: 0;
right: 0;
background-color: white;
opacity: 0.3;
width: 70%;
margin: auto;
padding: 5px;
color: black;
font-size: 30px;
font-family: calibri;
text-align: center;
}
<body>
<div class="container">
<div class="content">
<h3>Welcome to MedCare</h3>
</div>
</div>
</body>