SO I have this HTML layout:
<div class="container" style="height: 170px;">
<div class="wrapper">
<div class="banner">
<img class="logo" src="myimage.png">
</div>
</div>
</div>
I am using display flex on wrapper class and I am trying to vertically aligned centered, I have tried to play around with align-content and justified-content, but either my logo stays at the top of the div or is stretcher out...here is my css code:
.wrapper {
background: url(banner.jpg) no-repeat center center;
background-size: cover;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
max-width: 100%;
height: 100%;
}
.banner {
text-align: center;
width: 50%;
/* filter: drop-shadow( 15px 15px 15px rgba(0, 0, 0, 1.00)); */
padding: 0px 5% 0px 5%;
background-color: rgba(0, 0, 0, 0.67);
background-color: rgba(0, 0, 0, 0.67);
height: 100%;
}
.logo {
margin-top: 20px;
max-width: 100%;
max-height: 130px;
margin-bottom: 20px;
}