JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<button><img src="http://via.placeholder.com/200x200" alt=""></button>
<button><img src="http://via.placeholder.com/200x100" alt=""></button>
<button><img src="http://via.placeholder.com/200x50" alt=""></button>
<button><img src="http://via.placeholder.com/200x200" alt=""></button>
<button><img src="http://via.placeholder.com/200x150" alt=""></button>
</div>
CSS
div {
display: flex;
justify-content: space-between;
}
button {
-webkit-appearance: none;
border: 0 none;
background-color: #7a9bc5;
padding: 0;
}
img {
width: 100%;
}