I thought it was possible to center a div vertically within another div with its position set to relative? I'm not a fan of position absolute, as it layers it on top of everything.
What am i missing here? It can be centeret horizontal no problem.
.main_container {
  position: relative;
  height: 100vh;
  width: 100vw;
}
.main_container .inner_container {
  position relative;
  height: 90%;
  width: 95%;
  margin: auto;
}<div class="main_container">
  <div class="inner_container">
    //Some content here, img and text etc.
  </div>
</div> 
    