I need a little bit help on how to set just the background image to opacity of .5 and nothing else. I am using grid so anything I put in there is opaque and unfortunately I cant seem to find any help on Google either to explain how to bypass everything but the image.
.grid {
display: grid;
grid-template-areas:
"one two three"
"one two three"
"one two three";
grid-template-columns: 1fr 2fr 1fr;
grid-template-rows: repeat(3, 310px);
}
.title {
font-family: 'Chelsea Market', cursive;
font-size: 30px;
text-align: center;
}
.one {
background-color: tomato;
grid-area: one;
}
.two {
background-image: url(./henry-perks-TStCoAiFjDY-unsplash.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
opacity: .5;
grid-area: two;
}
<body>
<div class="grid">
<div class="one"></div>
<div class="two">
<h2 class="title">CJs Pizza Place</h2>
</div>
<div class="three"></div>
</div>
</body>