using flex box to design a page code example
Example: css flexbox layout examples
<div class="container">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
...
</div>
<div class="container">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
...
</div>