Connect with us

How To Create Simple Menu With Horizontal Scrollbar

How To Create Simple Menu With Horizontal Scrollbar

How To

How To Create Simple Menu With Horizontal Scrollbar

Sometimes we want to show lot of menu items horizontally, but because of the space limitation we reduce our menu items.

If you want to show all your menu items horizontally at any cost, there is a very simple solution, put a horizontal scrollbar, so that one can easily move the bar left and right to see all the menu items.

The horizontal bar will appear only when your menu items will exceed the maximum width of menu. This is how the menu will look like with horizontal scrollbar.

How To Create Simple Menu With Horizontal Scrollbar 1

Put this code on your website, by updating the links.

<style> {
background-color: brown;
overflow: auto;
white-space: nowrap;
} a {
display: inline-block;
padding: 14px;
text-decoration: none;
color: white;
text-align: center;
font-size: 16px;
font-weight: bold;
} a:hover {
background-color: crimson;
color: white;

<!– Menu Starts Here –>

<div class=”menu”>
<a href=””>Home</a>
<a href=””>How To</a>
<a href=””>About</a>
<a href=””>Blogger Tutorials</a>
<a href=””>Windows Tutorials</a>
<a href=””>Entertainment</a>
<a href=””>Technology</a>
<a href=””>Sports</a>
<a href=””>Travel</a>
<a href=””>Earn Online</a>
<a href=””>Ideas</a>
<a href=””>Opinions</a>


<!– Menu Ends Here –>


If you like this post then don’t forget to share with other people. Share your feedback in the comments section below.



Meer Basit is the founder of Meer’s World. He’s been running the show since launching the blog back in 2018. By background he is a computer scientist. Primarily, he creates content around blogging (WordPress, Blogger, Tumblr), SEO, affiliate programs, earn-online, reviews, eCommerce, & technology. He has got years of professional experience in web programming, computer programming, databases, data warehousing, & transcription. In general, he likes traveling, gardening, watching movies, is a passionate cricketer, creative writer, and a GSD lover.

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in How To

To Top