I have a banner and an avatar image on it. I have tried to add the blur effect to my banner but I have an error since the effect is done on my avatar and not on my banner.
To understand what I want, I share my JSFiddle with you .
This is my code:
.fondo_banner {
background-image: url(https://www.walldevil.com/wallpapers/a49/desktop-wallpaper-nepal-background-wallpapers.jpg);
background-repeat: no-repeat;
background-position: 100%;
background-size: cover;
margin: 0 auto 1em;
position: relative;
height: 240px;
}
.overlay_fondo_banner {
background-color: rgba(69, 90, 100, 0.6);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/*filter: blur(15px);*/
}
#pUsuario_avatar {
background-image: url(http://pia.az/photos/gffbff.jpg);
position: relative;
width: 85px;
height: 85px;
background-size: cover;
background-position: top center;
border-radius: 50%;
margin: 15px auto;
cursor: pointer;
}
<div class="fondo_banner">
<div class="overlay_fondo_banner">
<div id="pUsuario_avatar">
</div>
</div>
</div>