Here is my code:
.container{
width: 50%;
border: 1px solid;
text-align: center;
}
.box{
display: inline-block;
border: 1px solid red;
width: 100px;
height: 20px;
margin: 10px;
}
<div class="container">
<div class="box">sth</div>
<div class="box">sth</div>
<div class="box">sth</div>
<div class="box">sth</div>
<div class="box">sth</div>
</div>
As you see, the last element is also center. While I need to keep in the same line (vertically) on left column. So this is the expected result:
How can I do that?