JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div class="content-box">
<div class="image-box">
<img src="http://www.northernpartners.com/Images4/WPW8528_Bezel.jpg">
</div>
</div>
<div class="bottom-box">Bottom</div>
</div>
CSS
body {
margin: 0;
}
.container {
display: flex;
flex-direction: column;
height: 100vh; /* Avoid the IE 10-11 `min-height` bug. */
}
.bottom-box {
flex-shrink: 0; /* Prevent Chrome, Opera, and Safari from letting these items shrink to smaller than their content's default minimum size. */
background: #069;
color: #fff;
line-height: 3;
}
.content-box {
flex: 1 0 auto; /* Prevent Chrome, Opera, and Safari from letting these items shrink to smaller than their content's default minimum size. */
}
.image-box img {
max-width: 100%;
}