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 4000618
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:48:14+00:00 2026-05-20T07:48:14+00:00

The menu is here: http://voteacnng.org Problem is with dropdown. It’s a WordPress generated code.

  • 0

The menu is here: http://voteacnng.org

Problem is with dropdown. It’s a WordPress generated code.

Css:

.menu-tophorizontalmenu-container {
    margin: 18px auto 21px;
    overflow: hidden;
    width: 1005px;
    display: block;
}

    .menu {
        list-style: none;
        margin: 0 auto;
        padding: 0;
    }

    .menu * {
        margin: 0;
        padding: 0;
    }

        .menu a {
            display: block;
            color: #fff;
            padding: 6px 16px;
            background: #000;
        }

        .menu li {
            position: relative;
            float: left;
            font-size: 18px;
            margin: 2px 2px 0 0;
            text-transform: uppercase;
        }

            .menu ul {
                position: absolute;
                top: 33px;
                left: 0;
                background: #000;
                display: none;
                list-style: none;
                z-index: 999px;
            }

                .menu ul li {
                    position: relative;
                    display: block;
                    width: 257px;
                    margin: 0 0 2px 0;
                    padding: 0;
                }

                    .menu ul li a {
                        display: block;
                        padding: 6px 16px;
                        color: #fff;
                        background: #000;
                    }

                    .menu ul li a:hover {
                        background: #1191B7;
                        color: #000;
                    }

                        .menu ul ul {
                            left: 257px;
                            top: 0;
                        }

                        .menu .menulink {

                        }

                        .menu .sub {
                            background: url(img/arrow-left.jpg) no-repeat 136px 8px;
                        }

It works if i remove the slideshow under the menu.

It has also a JavaScript:

function mainmenu(){$(" #menu-tophorizontalmenu ul ").css({display: "none"}); // Opera Fix $(" #menu-tophorizontalmenu li").hover(function(){
    $(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
    },function(){
    $(this).find('ul:first').css({visibility: "hidden"});
    });} $(document).ready(function(){                  
mainmenu();});

Another problem is the arrow… The arrow needs to show up where a child menu is present.

Any ideas?

  • 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-05-20T07:48:14+00:00Added an answer on May 20, 2026 at 7:48 am
    visibility: "visible",display: "none"
    

    This may be contradicting itself. Try just using display:none; when you want to hide and display:block; when you want to show.

    It’s hard to relate this to your code as the jQuery returns the following error:

    No elements were found with the
    selector: “ul:first”

    Update (@11:07 GMT):

    I’ve used the following extra HTML and jQuery on this example – check jsfiddle

    HTML:

    <div class="menu-tophorizontalmenu-container">
      <ul id="menu-tophorizontalmenu" class="menu">
        <li id="menu-item-36" class="menu-item menu-item-type-custom menu-item-home menu-item-36">
          <a href="http://voteacnng.org">Homepage</a>   
          <div style="display:none;">
            <p>I am a</p>
            <p>menu item</p>
            <p>can you see?</p>
          </div>
        </li>
        // Other menu items
        <li>...</li>
      </ul>
    </div>
    

    jQuery:

    $("#menu-item-36").hover(function(){
        $("#menu-item-36").find("div").attr('style', 'display:block;');
        $(this).mouseout(function(){
            $("#menu-item-36").find("div").attr('style', 'display:none;');
        });
    });
    

    I’ve had to use a <div /> and <p />s because there is something in your CSS thats not showing <ul />s You should try to use this as a start but sort out your HTML and CSS so you can mark it up correctly with <ul>s and <li>s.

    Hope This helps.

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

Sidebar

Related Questions

I'm following this tutorial here http://www.kriesi.at/archives/create-a-multilevel-dropdown-menu-with-css-and-improve-it-via-jquery on adding a menu with jquery. I've created
Having some issues with my dropdown menu. Code here: http://jsfiddle.net/xY2p6/1/ Something simple I'm just
Can someone tell me why the CSS dropdown menu (rollover Software Solutions) works here
Taken from here: http://docs.jboss.org/hibernate/stable/core/reference/en/html/persistent-classes.html#persistent-classes-equalshashcode I tend to use List since Criteria returns List ,
I hope i described the problem well!? You can see it here: http://dealmob.de/index_dev.html when
I have a site here (http://beta.ohsinsider.com/) which has a dropdown in the search bar
I've created an example of the problem here: http://jsfiddle.net/jXLSW/ Notice that when you hover
I am using the jQuery Tools library Tabs. You can find them here: http://flowplayer.org/tools/tabs/index.html
I am building a menu in HTML/CSS/JS and I need a way to prevent
Current demo here: http://www.studioimbrue.com/sites/eliotdudik I have the tabs system working wonderfully. I'm trying to

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.