Is there a way to center three divs both horizontally and vertically within another div without using flexbox? I have tried using flexbox, but it ends up shrinking the new divs. Any suggestions on how to achieve vertical centering?
<div class="container">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
.container {
width: 100vw;
height: 100vh;
text-align: center;
}
.item {
width: 250px;
height: 350px;
background: red;
margin: 50px;
display: inline-block;
}