JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
<a href="#" class="btn">Button A</a>
<a href="#" class="btn">Button B</a>

</div>

CSS

.btn {
    height: 40px;
    max-width: 80px;
    line-height: 40px;
    padding: 0 15px;
    display: inline-block;
    background-color: dodgerblue;
}

.container {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid black;
}

@media only screen and (max-width: 600px) {
    .container {
        flex-direction: column;
    }
}