JSFiddle - React, Tailwind, and code Playground
by motocomdigital
HTML
<div id="horizon">
<div id="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;
}
#horizon {
height: 49px;
width: 100%;
overflow: visable;
position: relative;
background: url(images/nav-bg.jpg) no-repeat center top #041e75;
top: 100px;
}
#wrapper {
width: 420px;
margin: 0 auto;
height: 49px;
overflow: visible;
background: red;
position: relative;
top: 10px;
}
.nav {
overflow: visible;
height: 49px;
float: left;
left: 210px;
position: relative;
top: 10px;
background: green;
}
.nav a {
color: #ffffff;
}
.nav ul {
float: left;
height: 49px;
display: block;
text-align: center;
border-right: 1px white solid;
margin-left: -50%;
top: 10px;
overflow: visible;
position: relative;
background: yellow;
}
.nav ul li {
display: block;
text-transform: uppercase;
height: 49px;
float: left;
border-left: 1px white solid;
background: blue;
top: 10px;
overflow: visible;
position: relative;
}
.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);
}