Float Layout (don't use)
Customizing
Item
0
40
0
40
Content
Preview
Layout mode
11111
22222
33333
44444
Code
Paste to your file(s)
CSS
.floatbox {
display: block;
box-sizing: border-box;
margin: 0px -10px;
}
.floatbox::after {
clear: both;
content: '';
display: block;
}
.item {
float: left;
box-sizing: border-box;
width: 50%;
margin-bottom: 20px;
padding: 0px 10px;
}
.item:nth-child(2n + 1) {
clear: both;
}
.content {
color: #242424;
background-color: #3dcf5b;
font-weight: 600;
text-align: center;
box-sizing: border-box;
height: 100%;
padding: 10px;
}
HTML
<div class="floatbox">
<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>