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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:45:52+00:00 2026-05-31T18:45:52+00:00

I have a drop down menu that looks great when the page it scrolled

  • 0

I have a drop down menu that looks great when the page it scrolled to the very top, but when I scroll down, the second <li> parent’s drop down scrolls up with the page instead of sticking with the parent element.

RESOLVED: Second drop menu wasn’t inside the parent header div.

The top link CREATE works fine, but the link MANAGE is the <li> parent with the problem.

Here is the link to the JS: http://www.brandonrray.com/Heriyah/admin/system/js/chrome.js

Here is the CSS:

ul {
padding: 0;
margin: 0;
}
ul li {
padding: 0;
margin: 0;
}
.chromestyle{
width: 99%;
font-weight: bold;
cursor:pointer;
}
.chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
content: "."; 
display: block; 
height: 0; 
clear: both; 
visibility: hidden;
}
.chromestyle ul{
width: 100%;
margin: 0;
text-align: right;
}
.chromestyle ul li{
display: inline;
}
.chromestyle ul li a{
color: #494949;
padding-left:15px;
padding-right:15px;
padding-top:20px;
padding-bottom:20px;
margin: 0;
text-decoration: none;
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
color:#FFFFFF;
}
.chromestyle ul li a:hover, .chromestyle ul li a.selected{
background-color:#0abbe1;
}
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv{
cursor:pointer;
position:absolute;
top: 0;
border: 1px solid #BBB; /*THEME CHANGE HERE*/
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:24px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
}
.dropmenudiv a{
width: auto;
display: block;
text-indent: 3px;
border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
padding: 2px 0;
text-decoration: none;
font-weight: bold;
color: black;
padding-left:15px;
}
* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #0abbe1; color:#FFFFFF
}
  • 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-31T18:45:53+00:00Added an answer on May 31, 2026 at 6:45 pm

    If you look closely at the html source you’ll find that dropmenu2 is in the wrong place.

    This is your code

    <div>
       ...
       <div id="dropmenu1">...</div>
    </div>
    <div id="dropmenu2">...</div>
    

    Dropmenu 2 should in the same place as dropmenu1

    <div>
       ...
       <div id="dropmenu1">...</div>
       <div id="dropmenu2">...</div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a drop down menu that looks like this: It works fine, but
I have a drop-down menu that are dynamically added through WordPress. It looks like
Basically, I have drop down menu that looks like this: <select> <option>0</option> <option selected=selected>1</option>
So, I have an animated drop down menu that slides down when your mouse
I have a drop down menu in an ASPX page along the lines of:
I have the following drop down menu and the background looks black in Chrome
So, basically I have this select / drop down menu that I use AJAX
I have a drop down menu that is coded in HTML, CSS, and jQuery
I have a normal WinForms ToolStripDropDownButton's drop down menu that is populated dynamically. In
I have a link that functions similar to a drop down menu in that

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.