JSFiddle - React, Tailwind, and code Playground
by SEOplay
HTML
<div class="dualBlock">
<div class="dualImage col-postImage">
<img src="http://placekitten.com/300/600" />
</div>
</div>
CSS
.dualBlock {
width:80%;
margin:50px auto;
}
div.dualImage {
max-height:300px;
width:100%;
position:relative;
text-align:center;
background-color:red;
}
div.dualImage img {
max-width:100%;
max-height:100%;
}