JSFiddle - React, Tailwind, and code Playground

by motocomdigital

HTML

<div id="nav-horizon">
    
    <div id="nav-wrapper">
    
        <div class="nav">                
        
            <ul>
        
                <li><a href="#" title="home">Home</a></li>
                <li><a href="#" title="about">About</a></li>
                <li><a href="#" title="menu">Menu</a></li>
                <li><a href="#" title="map">Map</a></li>
                <li><a href="#" title="contact">Contact</a></li>
        
            </ul>
    
        </div>
        
    </div>
    
</div>

CSS

body {
    font-family: Helvetica, Arial, Geneva, sans-serif;
}

#nav-horizon {
    height: 49px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: url(images/nav-bg.jpg) no-repeat center top #041e75;
    top: 100px;
}

#nav-wrapper {
    width: 420px;
    margin: 0 auto;
    height: 49px;
    overflow: hidden;
    background: red;
}

.nav {
    overflow: visible;
    height: 49px;
    float: left;
    position: relative;
}

.nav a {
    color: #ffffff;
}

.nav ul {
    float: left;
    height: 49px;
    display: block;
    text-align: center;
    position: relative;
    border-right: 1px white solid;
    background: green;
}

.nav ul li {
    display: block;
    text-transform: uppercase;
    height: 49px;
    float: left;
    border-left: 1px white solid;
    background: blue;
}

.nav ul li:last-child {
    
}

.nav ul li a {
    display: block;
    height: 49px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.50);
    padding-right: 10px;
    padding-left: 10px;
}

.nav ul li a:hover {
    text-decoration: none;
    background-color: rgb(6, 29, 93 );
    background-color: rgba(13, 43, 119, 0.95);
}