<div class="container">
  <div class="item"></div>
</div>
.container {
  display: flex;
  justify-content: center;
  height: 90vh;
}

.item {
  padding: 20vh 10vw;
  align-self: center;
  background-color: #784367;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.