JSFiddle - React, Tailwind, and code Playground
HTML
<div class="animal-buttons">
<a href="pages/cow">
<img src="/assets/cow_button.png" alt="Cow_button">
</a>
CSS
.animal-buttons {
float: center;
a {
&:hover {
text-decoration: none;
}
img {
border: 0;
}
text-align: center;
}
}