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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:57:14+00:00 2026-06-18T01:57:14+00:00

My dropdown is not working. Following is the css and html code. #nav {

  • 0

My dropdown is not working. Following is the css and html code.

#nav {
    display: block;
    background: transparent url(../images/nav_bg.jpg) repeat-x left top;
    padding: 0;
    margin: 0;
    height: 34px;
    z-index: 100;
    position: relative;
    width: 100%;
    list-style: none;
    text-align: center;
}

#nav li {
    text-align: center;
    display: block;
    float: left;
    height: 34px;
    margin: 0;
    padding: 0;
    position: relative;
    background: url(../images/nav_sep.jpg) no-repeat 0 0;
}

#nav li a {
    float: left;
    height: 25px;
    padding: 0 15px;
    padding-top: 9px;
    color: #ccc;
    font-size: 0.9em;
    margin-left: 2px;
}

#nav li a:hover {
    background: url(../images/nav_over.jpg) repeat-x 0 0;
    color: white;
}

#nav li a.active {
    background: url(../images/nav_over.jpg) repeat-x 0 0;
    color: white;
    font-weight: bold;
}

#nav li.sep {
    background: url(../images/nav_sep.jpg) no-repeat 0 0;
    width: 2px;
    height: 34px;
    float: left;
}

#nav li.left {
    background: url(../images/nav_l.jpg) no-repeat left top;
    width: 36px;
    height: 34px;
    float: left;
}

#nav li.right {
    background: url(../images/nav_r.jpg) no-repeat right top;
    width: 36px;
    height: 34px;
    float: right;
}

#nav li ul {
    display: none;
    width: 170px;
    position: absolute;
    top: 34px;
    left: 0;
    margin: 0;
    padding: 0;
    /* Transparent background for drop down menu */
    background:transparent filter: alpha(opacity=90);
    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=90);
    opacity:0.90;
}

#nav li ul li {
    border: 0;
    height: 25px;
    color: #99FF00;
    background: #111;
    margin: 0;
}

#nav li ul li a {
    display: block;
    height: 25px;
    width: 140px;
    padding: 0 20px 0 15px;
    border-top: 1px #333 solid;
    white-space: nowrap;
    background: #000;
    color: white;
    text-align: left;
    line-height: 25px;
    font-weight: normal;
}

#nav li ul li a:hover {
    color: #99FF00;
    background: #111;
}

/* Hacks for Opera to fix the drop down menu problem */
html:first-child #nav li a {
    float: none;
    height: 34px;
    padding-top: 0;
    line-height: 34px;
    display: block;
}
html:first-child #nav li ul li a {
    height: 25px;
    line-height: 25px;
}

and HTML is

<ul id="nav">
      <li class="left">&nbsp;</li>
      <li><a class="active" href="#">Home</a></li>
      <li> <a href="DiscussionPanel">Discussion Panel<img src="/Images/nav_bullet.jpg" alt=""></a>
        <ul>
          <li><a href="/DiscussionPanel/AddProblemTag"></a></li>
          <li><a href="/DiscussionPanel/DisplayProblemList"></a></li>
          <li><a href="/DiscussionPanel/PostProblem"></a></li>
          <li><a href="/DiscussionPanel/ViewProblems"></a></li>
        </ul>
      </li>
       <li> <a href="MeetingScheduler">Meeting Scheduler<img src="/Images/nav_bullet.jpg" alt=""></a>
        <ul>
          <li><a href="/MeetingScheduler/MeetingMinutes"></a></li>
          <li><a href="/MeetingScheduler/MeetingList"></a></li>
        </ul>
      </li>
       <li><a href="/ReserveProject/StudentView">Reserve Project</a></li>
      <li><a href="/SubmitArtifact/StudentView">Submit Artifact</a></li>
      <li><a href="/CreateAttendanceSheet/MarkAttendance">Attendance</a></li>
      <li><a href="">Contact Us</a></li>
      <li class="sep">&nbsp;</li>
      <li class="right">&nbsp;</li>
    </ul>

I want when I hover the mouse on Discussion Panel, dropdown list should be render.

  • 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-18T01:57:15+00:00Added an answer on June 18, 2026 at 1:57 am

    You never actually display the sub ul on hover:

    #nav li:hover ul {
        display: block;
    }
    

    http://jsfiddle.net/ExplosionPIlls/gGBW4/

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

Sidebar

Related Questions

Hi can anyone tell me why remove() is not working in the following code
I am using following code but in it small caps is not working,please help
jquery change function on dropdown is not working at my application and working at
In onchange event is not working in jquery.selectbox-05, i am using two dropdown box
My problem comes from HTML dropdown select not able to preserve multiple consecutive whitespaces
The following dropdown menu works fine in modern browsers (IE7/firefox) but not in IE6.
Ok, firstly I have the following code working.. although my question is this; should
The following is not working and I am definitely missing the obvious but would
I have the following code which is working fine on the development machine. But,
I have the following script which is partially working. HTML: <div class=navigation3> click me

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.