JSFiddle - React, Tailwind, and code Playground

HTML

<div class="main">
    <div class="top">
    </div>
    <div class="mid">
        <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/Chestnut-breasted_Malkoha2.jpg/593px-Chestnut-breasted_Malkoha2.jpg" />
    </div>
    <div class="bot">
    </div>
</div>

CSS

.main {
	padding: 50px 0px;
    width: 640px;
    height: 480px;
    display: block;
    background: #000;
	position: relative;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}
.top {
	width: 100%;
    height: 50px;
	display: block;
    background: #eee;
    position: absolute;
    top : 0;
    left : 0;
}
.mid {
	width: 100%;
    height: 100%;
	display: block;
    background: #333;
}
img {
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    display: block;
}
.bot {
	width: 100%;
    height: 50px;
	display: block;
    background: #ccc;
    position: absolute;
    bottom : 0;
    left : 0;
}