JSFiddle - React, Tailwind, and code Playground
by Daniele De Matteo
HTML
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/css/bootstrap.min.css">
<div class="container container-sm-height">
<div class="row row-sm-height">
<div class="col-xs-12 col-md-6 col-sm-height">
<img src="http://placekitten.com/500/700" alt="" width="500" height="700" />
</div>
<div class="col-xs-12 col-md-1 col-sm-height col-middle">
<img src="http://placekitten.com/100/116" width="100" height="116" style="display: inline-block; vertical-align: middle;" />
</div>
</div>
</div>
CSS
/* columns of same height styles */
.container-xs-height {
display:table;
padding-left:0px;
padding-right:0px;
}
.row-xs-height {
display: table;
}
[class*="col-"] {
float: left;
display: block;
vertical-align: middle;
text-align: center;
}
img{
max-width: 100%;
height: auto;
}
@media (min-width: 992px) {
[class*="col-"] {
float: none;
display: table-cell;
vertical-align: middle;
}
}
@media (min-width: 1200px) {
.container-lg-height {
display:table;
padding-left:0px;
padding-right:0px;
}
.row-lg-height {
display:table-row;
}
.col-lg-height {
display:table-cell;
float:none;
}
}