Learn how to make a Menu follow our Scroll on our website

 Scroll menus, also known as overflow menus or scrolling menus, aren't necessarily essential for every website, but they offer advantages in specific situations. Here are some reasons why they might be useful:

Improved Navigation for Extensive Menus:

  • Accommodating a large number of menu items: When a website has a substantial list of options, displaying them all in a static menu can overwhelm users and take up valuable screen space. A scroll menu allows you to condense the list while still providing easy access to all options by scrolling.

Efficient Use of Space:

  • Maintaining a clean layout: Scroll menus are particularly beneficial on mobile devices or websites with limited screen real estate. They help maintain a clean and uncluttered layout by keeping the main menu compact and only displaying additional options when needed.

However, it's important to consider potential drawbacks:

  • Potential for user frustration: While some users might be familiar with scroll menus, others might find them unintuitive or require additional clicks to access desired options. This can lead to frustration and hinder navigation.

Alternatives to Scroll Menus:

  • Mega menus: These are drop-down menus that expand to reveal subcategories, offering a more organized way to present a large number of options without requiring scrolling.
  • Hamburger menus: These are icon-based menus (often resembling three horizontal lines) that collapse the full menu into a compact form, revealing it upon clicking. This works well on mobile devices where screen space is limited.

Ultimately, the decision to use a scroll menu should depend on the specific needs of your website, the number of menu items, and your target audience's familiarity with this navigation style.

There are also other options like the Mega menu and the Hamburger menus that work well on your website but you should consider the scroll menu because of Adsense, as every blogger knows that Adsense will be one of the first advertisement platforms to work on for beginners and we don't want to miss that opportunity.

Since Adsense has some strict rules you have to follow, a scroll menu is one of them as it provides easy navigation to the visitors.

There are many ways you can implement this on your website and here is one of them:

Step 1: You need to have a website to have your scroll menu, there will be a scroll menu or some simple menu on your website and we want that menu to stick whenever I scroll my phone or mouse.

Step 2: Go to your website's CSS style sheet and you need to add this code below to your website, if your website is already up and running then I recommend you to take a backup of your website theme if anything goes wrong.


/*scroll menu sticky*/ .sticky { position: fixed; top: 8%; /* Maintain the top position when scrolling */ left: 7%; /* Maintain the left position when scrolling */ width: 100%; /* Match the width of the container */ z-index: 50; /* Ensure the menu stays on top of other elements */ background-color: #fff; /* Set a background color for visibility (optional) */ /* Adjust other styles as needed (e.g., padding, margin, etc.) */ } /*scroll menu sticky*/

For Blogspot users, you can paste it just above (b:skin)

Step 4: This code tells the sticky menu to stick at the very top of your website, so if there is anything that is being blocked by the scroll menu you can adjust it to your needs.

Step 5: Now you need to go to your javascript file and search for (<nav class='navS scrlH '>) or something similar on your javascript website and add sticky like this (<nav class='navS scrlH sticky'>) now you have made your scroll menu stick to your scroll.

Post a Comment

Cookie Consent
Zupitek's serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.