JSFiddle - React, Tailwind, and code Playground
HTML
<div class="grid">
<div class="row">
<div class="c6"><img src="http://dummyimage.com/600x400/cccccc/cccccc.jpg" alt="-" /></div>
<div class="c6"><img src="http://dummyimage.com/600x400/cccccc/cccccc.jpg" alt="-" /></div>
</div>
</div>
CSS
img {
border: 0
}
.row:before, .row:after, .clearfix:before, .clearfix:after {
content: '';
display: table
}
.row:after, .clearfix:after {
clear: both
}
.row, .clearfix {
zoom: 1
}
/* =Grid
-------------------------------------------------------------- */
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box
}
.grid {
max-width: 1200px;
width: 100%;
margin-top: 56px;
margin-right: auto;
margin-bottom: 56px;
margin-left: auto;
}
img {
max-width: 100%;
height: auto;
display: block;
margin-left: auto;
margin-right: auto
}
.wfull {
width: 100%;
max-width: 100%
}
.w320 {
max-width: 320px
}
.w640 {
max-width: 640px
}
.w960 {
max-width: 960px
}
.row {
width: 100%;
margin-bottom: 10px
}
.row .row {
width: auto;
margin: 0 -20px
}
.c6 {
width: 50%
}
.c6 {
min-height: 1px;
float: left;
padding-left: 5px;
padding-right: 5px;
position: relative;
}
.end {
float: right!important
}
/* =Media query for 960 Screens - sets nested grids to 100%
-------------------------------------------------------------- */
@media only screen and (max-width:960px) {
.row .row .c6 {
width: 100%;
margin-bottom: 5px
}
.row .row > div:last-child {
margin-bottom: 0 !important
}
}
/* =Media query for iPad and tablets
-------------------------------------------------------------- */
@media handheld, only screen and (max-width: 768px), only screen and (max-device-width: 768px) and (orientation:portrait) {
.row {
margin-bottom: 0!important
}
.c6{
width: 100%;
margin-right: 0;
margin-left: 0;
margin-bottom: 5px;
padding: 0;
}
.grid {
max-width: 1200px;
width: 100%;
margin-top: 5px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
height: 100%;
}
}