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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:21:13+00:00 2026-05-31T13:21:13+00:00

I have been trying to build this nav for weeks now and something always

  • 0

I have been trying to build this nav for weeks now and something always go wrong.

What I am trying to do is have primary-nav and when you over over the primary-nav, the secondary-nav will appear below it and a little to the right. If you hover off the primary-nav or secondary-nav, the secondary-nav will display:none.

You can see this at http://willruppelglass.com/index.php

Here is my HTML

<div class="headerNav">
<ul>
<li><a href="#">Home</a></li>

<li class="primary-nav-item"><a href="#" class='galleryNavToggle'>Gallery</a>
<ul style="display:none;">
<li><a href="#">Categoies</a></li>
<li><a href="#">Products</a></li>
</ul>
</li>

<li class="primary-nav-item"><a href="#" class='galleryNavInfoToggle'>Info</a>
<ul style="display:none;">
<li><a href="#">F.A.Q.</a></li>
<li><a href="#">CV</a></li>
<li><a href="#">Artist Bio</a></li>
<li><a href="#">Video</a></li>
<li><a href="#">Contact</a></li>
</ul>
</li>

</ul>
</div>

MY CSS

.headerNav{
    color:#000;
    margin:0 auto;
    width: 1280px;
    padding-top: 148px;
}

.headerNav ul{
    list-style-type:none;
    margin:0;
    padding:0 0 0 8px;
}

.headerNav li{
    float:left;
}

.headerNav ul a{
    font-size:24px;
    color:#FFF;
    display:block;
    padding:0 55px 0 0;
    text-decoration:none;
    text-transform:capitalize;

}

.headerNav ul a:hover{
    color:#a40404;
    text-decoration:none;
}

.headerNav ul ul li {
    float: left;   
}

.headerNav ul ul a {
    font-size: 16px;
    display:block;        
}

JQUERY

$(document).ready(function(){
        $('.headerNav li.primary-nav-item').hover(
            function() { $('ul', this).css('display', 'block'); },
            function() { $('ul', this).css('display', 'none'); });
    });

Other notes, I have two divs below the nav, which could why its not displaying, can I get it to overlay those divs?

<div class="headerDropShadow"></div><!--headerDropShadow-->

<div class="contentWrapper">
<div class="content" id="content">
<div class="topContent"></div><!--topContent-->
</div>
</div>

and their respected CSS

.headerDropShadow{
    background:url(../images/headerShadow.jpg) repeat-x;
    width:100%;
    height:49px;
}

.topContent{
    background:url(../images/topContent.jpg) repeat-x;
    width: 992px;
    height:50px;
    margin:0 auto;
    position:relative;
}

Any help at all would be great as this as been an issue for a loooooong time.

Thanks in advanced,
J

  • 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-31T13:21:14+00:00Added an answer on May 31, 2026 at 1:21 pm
    .headerNav li ul {
        position: absolute;
        z-index: 999;
    }
    

    I would also recommend using .clearfix hack for the parent ul element. More info about clearfix here: http://nicolasgallagher.com/micro-clearfix-hack/.
    In jquery try to use .toggle(), just because it need less code ^^.

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

Sidebar

Related Questions

i have been trying to build the Qt Driver for 2 weeks now ,
I have been trying to get around this error for a day now and
I have been developing an iPhone app and now I am trying to build
I have been trying to build an online java compiler. But running the clients
I am new to scons and have been trying to build some files, in
I have been trying(in vain) to build a page whose elements would resize as
I've been trying to build my first rails app and have gotten stuck on
I have been hitting a dead end with this program. I am trying to
I've been trying to build a LGPL copy of ffmpeg and I have tried
I have been trying to build c++ boost to work with qt creator but

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.