SpyreStudios

Web Design and Development Magazine

  • Design
  • Showcase
  • Inspirational
  • Tutorials
  • CSS
  • Resources
  • Tools
  • UX
  • More
    • Mobile
    • Usability
    • HTML5
    • Business
    • Freebies
    • Giveaway
    • About SpyreStudios
    • Advertise On SpyreStudios
    • Get In Touch With Us

3 Features Every CSS Navigation Menu Must Have

January 5, 2018 by Spyrestudios Blogger

Building a custom CSS navigation menu for yourself or a client is exciting. You’ve got a blank canvas to start with, and you can create anything. However, CSS menus aren’t simple. Engineering them might be old hat, but over the years, CSS menus have gotten stuck in a groove, skipping some of the most important elements. These elements, when skipped, often lead to a frustrating user experience.

Before diving into the creation of your next CSS menu, consider getting out of the groove by including the following features:

1. List items spaced out efficiently

We all love the way menu items look when there’s a single pixel of space between one item and the next in a drop-down menu. It’s elegant. The simplicity of that fine line adds to the “pixel perfect” appearance of the design.

There’s a downside to putting spaces between menu items, though, and it’s not a small problem. Spacing – even at one pixel – creates a gap within the element. When a user activates a drop-down menu with spaces between list items, and their mouse hovers over that space, the menu will disappear.

If your spaces are only one pixel, the chances of your menu disappearing on your users is small. However, if you’re using spaces larger than a couple of pixels, you’ve probably got some frustrated users out there.

For instance, this horizontal navigation menu looks fantastic, but has the gaps that can potentially create a frustrating user experience.

Rather than use spaces to create the appearance of a pixel-perfect drop-down menu, make your drop-down selections one solid element and use background colors to create separating lines. That’s not the only solution, though.

Mega menus – like the menu used by this CCTV company – are a great solution to eliminate the gaps and maintain elegance. When the mega menu drops down (for the majority of main menu items), the sub-menu area spans the full width of the menu. This is the key to absolute usability.

When the drop-down menu fills the width of the menu (as opposed to the usual cascade of multiple fly-out menus), navigating is effortless. The user can move their mouse around to any selection without having to start over because they’ve accidentally run into a gap.

Don’t reinvent the navigation wheel

If you’re in love with creating custom CSS from scratch, you can design your own menu. If, however, you just want to get on with your project, consider using (and customizing) a menu that’s already been designed. For most web projects, you’ll find plenty of useful CSS menus on GitHub.

If you’re using WordPress, it’s easy to install a mega menu plugin so you don’t have to do any of the work. UberMenu is one of the top choices. It’s only $20, has a 4.5-star score on Code Canyon, and has been downloaded over 69,800 times. There are other choices on Code Canyon for non-WordPress sites, too.

2. Use visual indicators for sub-menus

If your navigation labels are clear and specific, you’re ahead of the game. However, clear labels aren’t always enough to tell the user that’s where they’ll find their information when there’s a sub-menu hidden beneath.

When one of your main menu items activates a sub-menu, unless there’s a visual indicator that a sub-menu exists, your visitors may not hover over that menu item to find out. In fact, they may read the menu label and think, “that’s not what I want” and then bounce.

For instance, businesses today are creating sub-menus underneath the “About Us” main menu item. This sub-menu often includes links to the contact and support pages. Most people looking for a contact or support page would look at a menu item labeled “About Us” and skip it.

Aside from the fact that links to contact and support pages don’t really belong in a sub-menu, with a visual cue (like an arrow or a plus sign), the visitor might hover over the menu item just to see what pops up.

3. Clear navigation labels

The most important part of any CSS menu is how you label the links.

Famous people and big brands can get away with clever navigation labels that match inside jokes they share with fans. However, doing this is a turn-off to people who don’t know what the joke’s all about.

To get an idea of how clear your labels are, ask someone you don’t know to look at your navigation menu and tell you what they expect to find behind each label. Your navigation should be so clear that anyone can describe what each link leads to, even if they don’t understand it.

Filed Under: CSS, Design Tagged With: CSS menu, CSS navigation menu, drop down menu, mega menus

Recent Posts

  • How to use a PDF file combiner to support a Web planner optimally
  • What Factors Determine the Best Digital Marketing Agency?
  • 31 Fresh Design Elements for Spring and Easter
  • 10 Templates for Music Concert Flyers
  • How to Build a Web Scraper Using Node.js

Archives

  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • May 2008
  • April 2008

Categories

  • Accessibility
  • Android
  • Apps
  • Art
  • Article
  • Blogging
  • Books
  • Bootstrap
  • Business
  • CSS
  • Design
  • Development
  • Ecommerce
  • Fireworks
  • Flash
  • Freebies
  • Freelance
  • General
  • Giveaway
  • Graphic Design
  • HTML5
  • Icons
  • Illustrator
  • InDesign
  • Infographics
  • Inspirational
  • Interview
  • Jobs
  • jQuery
  • Learning
  • Logos
  • Matrix
  • Minimalism
  • Mobile
  • Motion Graphics
  • Music
  • News
  • Photoshop
  • PHP
  • Promoted
  • Rails
  • Resources
  • Showcase
  • Tools
  • Tutorial
  • Twitter
  • Typography
  • Uncategorized
  • Usability
  • UX
  • Wallpapers
  • Wireframing
  • WordPress
  • Work

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

SpyreStudios © 2022