JSFiddle - React, Tailwind, and code Playground
HTML
<div class="one"></div>
<div class="two"></div>
<div class="three"></div>
CSS
div {
width:200px;
height:400px;
margin:10px 0 0 0;
background:url("https://image.prntscr.com/image/73766f10249742a3bcd4517794000b86.png") top center no-repeat red;
}
.one {
background-size:100%;
}
.two {
background-size:cover
}
.three {
background-size:100% 100%;
}