https://i.sstatic.net/0laRo.jpg
.outer {
padding: 50px;
}
.inner {
width: 500px;
height: 1000px;
border: 1px solid gray;
margin: auto;
}
<div class="outer">
<div class="inner">
<div class="content">qwerty</div>
</div>
</div>
From my perspective, using inline-block display is not ideal because I need to center my inner div.