Navigation
Nav w/ Hover State
Can you create a navigation menu using HTML and CSS?
The white box serves as a placeholder for a logo.
Note: The "Products" link has a drop-down menu feature.
See my current implementation below, although it's not yet complete:
#mainNav {
height: 60px;
background: url(../../images/main-nav-left.png) top left no-repeat, url(../../images/main-nav-right.png) top right no-repeat, url(../../images/main-nav-repeat.png) top repeat-x;
}
#mainNav li {
float: left;
height: 48px;
font-weight: bold;
background-color: red;
margin-top: 5px;
}
#mainNav li:not(.logo-wrapper) {
padding: 0px 47px;
font-size: 17px;
text-transform: uppercase;
}
#mainNav li a {
display: block;
background-color: green;
margin-top: 15px;
}
#mainNav li.logo-wrapper {
margin-left: 15px;
}
#mainNav h1 {
margin-top: -15px;
}
<nav class="thirteen columns" id="mainNav">
<ul>
<li class="logo-wrapper">
<h1 id="logo">
<%= link_to image_tag('logo.png'), root_path %>
</h1>
</li>
<li>
<a href="#">Products</a>
</li>
<li>
<a href="#">Parts</a>
</li>
<li>
<a href="#">Resources</a>
</li>
</ul>
</nav>
One major challenge I'm facing is incorporating slanted separators and ensuring the hover states work correctly on the right side of the navigation bar.