I have two elements: a div
with background image and an img
(logo) that I need to put in the middle of the first one (vertically aligned).
Here's the HTML part:
<div class="srvc_image" style="background: url('img/mainslide_005.jpg') center center no-repeat; background-size: cover;">
<img src="img/logo_no_text.png" class="logo_srvc">
</div>
And the CSS is as follows:
.srvc_image {
display: inline-block;
border-radius: 100%;
width: 75%;
height: 330px;
vertical-align: middle;
-webkit-filter: brightness(70%);
filter: brightness(70%);
filter:url('../css/filtazz.svg#brightness');
}
img.logo_srvc {
position: absolute;
top: 50%;
left: 40%;
width: 80px;
height: 80px;
margin-top: -40px;
margin-left: -40px;
}
I need the logo not inherit the brightness (or whatsoever) from the containing div
but can't figure out how to achieve it.
Thanks in advance!