JSFiddle - React, Tailwind, and code Playground
by trentHarlem
HTML
<nav>
<a>
<div>text
</div>
</a>
</nav>
CSS
nav {
margin: 1.5rem;
margin-top: 0;
display: flex;
flex-direction: row;
flex: 1;
justify-content: center;
align-items: center;
}
nav a {
display: flex;
flex-direction: column;
/* justify-content: center;
*//* align-items: center;
*/ font-size: 1rem;
position: relative;
overflow: hidden;
height: 2rem;
padding: 0rem 0.5rem 0rem 0.5rem;
margin: 0.5rem;
border: white 1px solid;
color: white;
text-decoration: none;
background-color: black;
/* transition: background-color 0.5s, color 0.5s, height 0.5s; */
border-radius: 0.2rem;
}
nav a div {
align-items: center;
margin: 0.5rem 0rem 0.5rem 0rem;
}