showcases a sleek horizontal scrolling menu on mobile devices. I aim to replicate this functionality for a website I'm redesigning that features extensive navigation elements.
Key Features:
- Left and right scroll button options
- Centered list item option within the available space
- Display only one list item at a time
- Horizontal Scrolling & Responsive design
- Clicking on the first or last list item navigates to the appropriate end of the list
This is the current HTML code for the section:
<nav id="sub" class="clearfix">
<ul class="wrapper">
<a href="#"><li>Estimate</li></a>
<a href="#"><li>About</li></a>
<a href="#"><li>Customer Information</li></a>
<a href="#"><li>Financing</li></a>
<a href="#"><li>Careers</li></a>
<a href="#"><li>Locate Us</li></a>
<a href="#"><li>Inspiration</li></a>
</ul>
</nav>
Current CSS styles attached to the menu are as follows:
nav#sub {
background: #004173;
/* Additional CSS properties */
}
#sub ul {
text-align: center;
/* Additional CSS properties */
}
#sub ul li {
padding: 10px 3.3%;
/* Additional CSS properties */
}
#sub a {
color: #fff;
font-size: 10pt;
font-weight: 400;
text-decoration: none;
/* Additional CSS properties */
}
#sub ul a:hover li {
background: #007FEB;
}