I need help achieving a background photo with a div in front, featuring a blurry dark background with white text.
Currently, the setup shows a dark background without blur and dark text. Can someone please assist me?
#section0 {
background-color: lightgreen; /*normally the photo*/
}
.blurwrapper {
position: relative;
overflow: hidden;
}
.blur {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: black;
filter: blur(1px);
opacity: 0.2;
transform: scale(1.5);
z-index: 1;
}
h1 {
color: white;
}
.about {
color: white;
background: none;
margin: auto;
margin-top: 20px;
max-width: 800px;
font-size: 15px;
padding: 20px;
text-align: center;
letter-spacing: 2px;
color: white;
border-top: 1px solid white;
z-index: 2;
}
<div class="section active" id="section0">
<div class="blurwrapper">
<h1><span>...</span></h1>
<p class="about">...</p>
<div class="blur"></div>
</div>
</div>