JSFiddle - React, Tailwind, and code Playground
by jt3k
HTML
<div class="container">
<div class="full"></div>
<div class="half"></div>
<div class="half"></div>
<div class="full"></div>
<div class="three"></div>
<div class="three"></div>
<div class="three"></div>
</div>
CSS
.container {
font-size: 0;
width: 300px;
margin: auto;
}
.half {
width: 50%;
height: 100px;
}
.full {
width: 100%;
height: 100px;
}
.three {
width: 33.333%;
height: 100px;
}
.half, .full, .three {
display: inline-block;
background-size: cover;
background-image: url(https://github.com/favicon.ico);
background-position: 50% 50%;
background-repeat: no-repeat;
box-sizing: border-box;
border: 1px solid red;
}