Flexbox Items Layout
Customizing
Container
Item
0
40
0
40
Content
Preview
Layout mode

11111

22222

33333

44444

Code
Paste to your file(s)
CSS
.flexbox {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  box-sizing: border-box;
  margin: 0px -10px;
}

.item {
  box-sizing: border-box;
  width: 50%;
  margin-bottom: 20px;
  padding: 0px 10px;
}

.content {
  color: #242424;
  background-color: #1bbefe;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
  height: 100%;
  padding: 10px;
}
HTML
<div class="flexbox">
  <div class="item">
    <div class="content">
      <p>11111</p>
    </div>
  </div>
  <div class="item">
    <div class="content">
      <p>22222</p>
    </div>
  </div>
  <div class="item">
    <div class="content">
      <p>33333</p>
    </div>
  </div>
  <div class="item">
    <div class="content">
      <p>44444</p>
    </div>
  </div>
</div>