Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8222517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:18:33+00:00 2026-06-07T14:18:33+00:00

I am trying to create a CSS/Jquery horizontal menu. All of the list items

  • 0

I am trying to create a CSS/Jquery horizontal menu. All of the list items include a link and one will include a hidden div which should be displayed when the corresponding link is hovered over.

The problem I am having is when the link is hovered over the hidden div is in the container div of the menu, meaning the background of the now displayed div is the same as the menu, and other styles.

What I would like is for the div which is to be displayed, is not part of the same div as the menu but which appears beneath the corresponding link.

An example I found is http://www.inprocorp.com/default.aspx if you hover over any of the header links.

The content in the hidden div could contain images, HTML lists, paragraphs…

I tried to use jsfiddler but it is down at the moment.

Code:

HTML

<div id="centeredmenu">
<ul>
<li><a href="#">home</a></li>
<li><a href="#">services</a></li>
<li class="subMenu"><a href="#" id="prod">products</a>
<div class="hiddencontent">hidden content</li>
<li><a href="#">contact</a></li> 
<li><a href="#">about</a></li>
</ul>
</div>

JS

$('li.subMenu a').hover(function(evt)
{       
var link = $(this);
var dialog = link.next('div');
dialog.css("top", link.position().top);
dialog.css("left", link.position().left);
dialog.css("position", "relative"); 
dialog.show();
},

function() { 
$(this).next('div').hide();
})

Thanks,
Andrew

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:18:35+00:00Added an answer on June 7, 2026 at 2:18 pm

    this should help you out:

    http://www.brandammo.co.uk/blog/2011/02/simple-jquery-dropdown-menu-with-easing-and-hoverintent-navidropdown-1-0/

    To create drop-down menus hoverintent is one of the most useful plugins – trust me!

    The demo is also similar to the effect you want to achieve (without the easing)

    http://www.brandammo.co.uk/blog/wp-content/uploads/2011/02/jquery.naviDropDown.v1.0.DEMO/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a css menu bar that has all grey text with
I am trying to create a drop down menu using jQuery and CSS. Here
I'm trying to create a popup for which I am using jQuery's CSS function.Here's
I'm trying to dynamically create alert messages using the jQuery plugin for Bootstrap CSS.
I am trying to create a css menu. I would like to remove border
I am trying to create a multi level navigation menu with css. I guess
I'm am trying to create a jQuery plugin that will add new namespace functions
All, I am trying create a 'to & fro' animation using jquery animate &
I'm trying to create a fade in effect using jQuery, html & CSS with
I'm trying to create an accordion type menu using the following JQUERY: function initMenu()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.