I have two divs
with images inside that I am trying to center horizontally and vertically within the page. They remain pinned to the left of each div
. How do I resolve this?
My goal is to create two columns, left approx 30% of total width containing voab.png, right remaining 70% of total width containing 3 icons vertically stacked.
body {
background-image: url("_images/back.jpg");
background-attachment: fixed;
background-size: cover;
background-position: left;
background-repeat: no-repeat;
height: 100vh;
width: 100vw;
}
.icons img {
opacity: 0.6;
}
div.voab {
min-height: 100%;
margin: 0 auto;
display: flex;
justify-content: center;
align-items: center;
align-content: center;
}
div.left {
width: 30%;
height: 100%;
}
div.icons {
width: 70%;
height: 100%;
}
<div class="voab">
<div class="left"> <img src="_images/voab.png" width="186" height="178"></div>
<div class="icons"> <img src="_images/insta.png" alt="insta" width="65" height="65" style="padding-bottom: 40px;"> <br>
<img src="_images/opensea.png" width="65" height="65" style="padding-bottom: 40px;"> <br>
<img src="_images/twit.png" alt="insta" width="65"> </div>
</div>