JSFiddle - React, Tailwind, and code Playground

HTML

<div class="green">
    <img src="http://placekitten.com/100/100" />
    <p>kitty!</p>
</div>
<div class="blue">
    <img src="http://placekitten.com/120/120" />
    <p>kitty!</p>
</div>
<div class="red">
    <img src="http://placekitten.com/140/140" />
    <p>kitty!</p>
</div>

CSS

div ::-moz-selection {
    background-color: yellow;
}
.green {
    position: absolute;
    top: 0;
    left: 0;
    background-color: green;
}
.blue {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: blue;
}
.red {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: red;
}