<div class="horscroll" style="max-width:500px;margin:0 auto;">
<a class="active" href="#home">Home</a>
<a href="#news">News</a>
<a href="#contact">Contact</a>
<a href="#about">About</a>
<a href="#support">Support</a>
<a href="#blog">Blog</a>
<a href="#tools">Tools</a>
<a href="#base">Base</a>
<a href="#custom">Custom</a>
<a href="#more">More</a>
<a href="#logo">Logo</a>
<a href="#friends">Friends</a>
<a href="#partners">Partners</a>
<a href="#people">People</a>
<a href="#work">Work</a>
</div>
div.horscroll {
background-color: #333;
overflow: auto;
white-space: nowrap;
}
div.horscroll a {
display: inline-block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
div.horscroll a:hover {
background-color: #777;
}
var $menu = $(".horscroll");
$menu.on("mousewheel", function(e) {
var scrollSize = e.originalEvent.wheelDelta,
thisScrollLeft = $(this).scrollLeft();
$(this).scrollLeft(thisScrollLeft - scrollSize);
e.preventDefault();
});
This Pen doesn't use any external CSS resources.