JSFiddle - React, Tailwind, and code Playground

by Anisuzzaman Khan

HTML

<div class="navband">
   <div class="nav">
     <ul>
       <li><a href="#">Work</a></li>
       <li><a href="#">About</a></li>
       <li><a href="#">Blog</a></li>
       <li><a href="#">Contact</a></li>
     </ul>
   </div>
</div>

CSS

.nav {
    text-align: center;
}

.nav ul {
    position: absolute;
    bottom: 0;
	margin-left: auto;
	margin-right: auto;
	left: 0;
	right: 0;
    height: 150px;
}

.nav ul li {
    list-style: none;
    display: block;
    float: left;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

.nav ul li a {
    display: inline-block;
    text-decoration: none;
    background: #F7941E;
    color: #414042;
    text-transform: uppercase;
    height: 130px;
    width: 120px;
    margin-top: 20px;
    -webkit-transition: margin 0.2s ease;
    -moz-transition: margin 0.2s ease;
    -ms-transition: margin 0.2s ease;
    transition: margin 0.2s ease;
}

.nav ul li a:hover{
    margin-top: 0;
}