JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div class="col">
<div class="top">Top</div>
<div class="center">Center</div>
<div class="bottom">Bottom</div>
</div>
<img src="http://cs4197.vk.me/u36242187/92537698/x_5be70c89.jpg" />
</div>
CSS
/* flex method beautiful */
.container {
background-color: blue;
height: 100%;
overflow: auto;
}
.bottom {
background-color: yellow;
position: absolute;
right: 0;
left: 0;
bottom: 0;
}
.center {
height:108x;
background-color: green;
width: 100%;
position: relative;
}
.top {
background-color: yellow;
position: absolute;
right: 0;
left: 0;
top: 0;
}
.col {
position: relative;
height: 100%;
background-color: grey;
width: 33%;
display:flex;
align-items: center;
float: left;
}
.container {
height: 100%;
}
img {
width:300px;
height:200px;
}