www.webdeveloper.com
Results 1 to 3 of 3

Thread: Navigation menu with image (whirlpool site)

  1. #1
    Join Date
    Aug 2005
    Location
    Earth
    Posts
    198

    Question Navigation menu with image (whirlpool site)

    Hi,
    I want to recreate the navigation menu as used in the site: http://www.whirlpool.com/
    so like when we mouseover 'laundry' 'kitchen', a dropdown opens with menu items and images.
    I have never worked in Dojo and seems like this has been used. Can someone please help me out to create such a menu thru jQuery, Dojo or simple CSS.

    thank you.

  2. #2
    Join Date
    Dec 2012
    Posts
    137
    The navigation is made using embedded list elements, you can do this without any JavaScript

    HTML Code:
    <style>
      nav ul {
        padding:0;
        margin: 0;
      }
      nav ul li {
        display: block;
        float: left;
        margin-right: 10px;
        position: relative;
      }
      nav ul li ul {
        display: none;
        position: absolute;
      }
      nav ul li:hover ul {
        display: block;
      }
    </style>
    <nav>
        <ul>
            <li>
                <a href="#">Laundry</a>
                <ul>
                    <li class="nav-heading"><img src="nav image"></li>
                    <li><a href="#">Sub menu item</a></li>
                    <li><a href="#">Sub menu item</a></li>
                    <li><a href="#">Sub menu item</a></li>
                </ul>
            </li>
        </ul>
    </nav>
    That's the basic way of getting a drop down menu.

  3. #3
    Join Date
    Aug 2005
    Location
    Earth
    Posts
    198
    Thx for d reply, but I want to create exactly what the whirlpool site has. It looks so nice.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles