Is there a way to apply an opacity of 0.5 to only the background image in my jumbotron, without affecting the text? Currently, when I set the opacity for the background, it also affects the text. How can this be resolved?
Below is the custom CSS file:
.jumbotron{
opacity: 0.5;
background-image: url("../img/colorful_planke.jpg");
background-size: cover;
}
.jumbo_text {
color: white;
}
See the jumbotron HTML below:
<div class="jumbotron jumbo_text">
<h1 class="display-4 font-weight-bold text-center">Lorum Ipsom</h1><br>
<p class="lead text-center font-weight-bold">Lorum Ipsom | Lorum Ipsom | Lorum Ipsom | Lorum Ipsom |
Lorum Ipsom</p>
</div>