Navbar
by ian_smithz
HTML
<header class="nav-down">
<nav class="headernav">
<ul>
<li><a href="#">Gig</a></li>
<li><a href="#">ity</a></li>
<li><a href="#">element</a></li>
</ul>
</nav>
</header>
CSS
header {
height: 80px;
position: fixed;
top: 0;
transition: top 0.2s ease-in-out;
width: 30%;
}
footer { background: #ddd;}
* { color: transparent}
nav {
height: 100%;
width: 100%;
background-color: bisque;
white-space: nowrap;
}
nav::before {
content: "";
display: inline-block;
vertical-align: middle;
width: 0;
height: 100%;
}
nav ul {
display: inline-block;
vertical-align: middle;
list-style: none;
text-align: center;
margin: 0;
padding: 0;
white-space: normal;
}
nav ul li {
display: inline-block;
float: left;
}
nav ul li a {
display: block;
padding: 15px;
text-decoration: none;
color: #aaa;
font-weight: 800;
text-transform: uppercase;
margin: 0 10px;
}