A Guide To Create Navigation Menu In Responsive Design

create navigation menu

Indubitably, a responsive design ensures a surefire presence over all devices, however, this can’t be denied that designing responsive mobile solutions is not an easy meat. And, especially the navigation menu design is the one that demands greater precision and painstaking efforts.

For the folks who want to design an effective and impressive navigation for their enticing mobile presence, this article will offer you a list of resourceful tips and design aspects for your consideration.

Designing the navigation menu for both small screens and large screens at the same time is a bit cumbersome task. To accomplish it efficiently, one must plan out things and create a strategy that is best suitable to target different kind of devices.

Ultimate Solutions to work through the navigation issues in Responsive design:

In order to keep your product (app/site) navigation clutter-free and product intact, here are a few tips to resolve the issue of navigation for small-screen devices. Let’s distill them.

1. Representing as Blocks

Representing the menu items in larger blocks while consuming the entire home page for the menu will offer a captivating solution. If your product possesses certain prominent sections or has a few numbers of pages, this solution will be a great choice.

2. Compressing in successive line

By implementing the relative style label in the menu items when they are displayed on a smaller screen (with reduced resolution), you can compress the menu items in successive lines. This simple and effective strategy is absolutely great for the menu with only a few items.

3. Menu Icon for an advanced solution

You can integrate a menu icon that can offer a list of navigation options to your users. When a user clicks or hovers over the Menu icon, all the available options can be displayed. This is a space-effective solution that helps beautifully showcase the menu without compromising with the visual appearance of the product.

4. Navigation within a dropdown menu

It is another solution to showcase the menu list in a precise and uncluttered fashion. You can create a great look and feel with a superimposed dropdown menu. It will focus more on the rest of the page content since the dropdown menu approach will offer an ample amount of free space.

A Complete Guide to implement Mobile Navigation with jQuery 

jQuery is an ultimate framework that helps create amazing mobile solutions with a simple approach. It is backed with numerous resourceful tools that can augment the development process and help attain an invaluable and impressive mobile presence.

You can implement jQuery for creating an intuitive and engaging navigation menu with a responsive mobile solution. It can help contemplate the menu icon and streamline the navigation.

Let’s have a glimpse into its several coding sections.

a.) HTML section

<nav id=”main-navigation”>


                        <li><a href=”#”>Menu 1</a></li>

                        <li><a href=”#”>Menu 2</a></li>

                        <li><a href=”#”>Menu 3</a></li>

                        <li><a href=”#”>Menu 4</a></li>



b.) jQuery Code section

To implement jQuery, you must include the jQuery and the function (as comprehended below) after the head tag. This function will scrutinize the functionalities and represent the menu items, when a user will click on the #menu-icon element.

<script type=”text/javascript” src=”http://code.jquery.com/jquery-1.11.2.min.js”></script>

<script type=”text/javascript”>


            /* prepend menu icon */

            $(‘#main-navigation’).prepend(‘<div id=”menu-icon”>Menu</div>’);

            /* toggle nav */

            $(“#menu-icon”).on(“click”, function(){





To observe how it will work, the below mentioned code snippet has to be executed.

Code Snippet:

<nav id=”main-navigation”>

            <div id=”menu-icon”>Menu</div>

            <ul id=”nav”>

                        <li><a href=”#”>Menu 1</a></li>

                        <li><a href=”#”>Menu 2</a></li>

                        <li><a href=”#”>Menu 3</a></li>

                        <li><a href=”#”>Menu 4</a></li>



c.) CSS Section

@media screen and (max-width: 768px) {

            #menu-icon {

                        color: #000;

                        width: 32px;

                        height: 32px;

                        background: url(images/menu-icon.png) no-repeat 5px center;

                        padding-left: 4px 10px 4px 42px;

                        cursor: pointer;

                        border: solid 1px #666;

                        display: block;


            #main-navigation {

                        position: absolute;

                        top: 32px;

                        left: 0;


                        z-index: 99;

                        padding: 5px 0;

                        background: #333;

                        display: none;



Here, the #menu-icon has been set to display: block, however, it was initially set to none. This block will be displayed only if the width of the viewport will be less than 768 pixels.

In the media query, the navigation of “#main-navigation ul” has been to display:none, so it will not be visible on mobile. However, as soon as the #menu-icon will be clicked, it will become visible to the users (and it will embrace the aforementioned attributes).

You may choose any solution that best suits your product goals and requirements. And, by using the guide, you can efficiently create an intuitive and intriguing navigation menu for responsive mobile solutions.





Leave a Reply

Your email address will not be published.

You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>