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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:09:28+00:00 2026-05-28T01:09:28+00:00

I have a dropdown in HTML. When I hover on it, it expands. I

  • 0

I have a dropdown in HTML. When I hover on it, it expands. I added a new entry in the dropdown, and when I hover on it, I want my new entry visible completely (I added Comp3 in dropdown. I can see the upper part of it, but not completely Comp3). I tried various things like giving height to divs, increasing the height of the component in css, but nothing helped. Viewing the source code of that in the browser, this is the small code snippet of that particular dropdown:

<div class="optionsDropDown">
  <p class="optionsDropDown collapseTrigger" id="userMenu">
    Hello<em>&nbsp;User </em><span class="closed"></span>
  </p>
  <ul class="optionsDropDown collapseContent closed" name="userMenu">
    <li>
      <a class="optionsDropDown" href="javascript:showHelp();">
        <span id="0">Comp1</span>
      </a>
    </li>
    <li>
      <a class="optionsDropDown" href="myAction.do?actionCode=3&page=controlPanel" target="view">
        <span id="1">Comp3</span>
      </a>
    </li>    
  </ul>
</div>

Below is the javascript function that expands the dropdown:

$.fn.openMenu = function(menuContent){ 
  $(menuContent).slideDown(200,function() { 
    $(menuContent).children().fadeTo('fast',1); 
  }); 
  $('span', this).removeClass('closed');
};

And here is the dropdown class:

div.optionsDropDown {
    float: right;  
    font-size: 11px;
    height: 25px;
    margin: 12px 32px 0 0;
    position: absolute;
    top: 0px;
    right: 10px;
    width: 120px;
    z-index: 10000;
}

Please let me know if somehow height can be increased. Thanks in advance.

  • 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-28T01:09:29+00:00Added an answer on May 28, 2026 at 1:09 am

    I believe your <div> and <ul> heights needs to be set to auto and the heights of each <li> needs to be adjusted.

    Often times CSS becomes the practice of hit or miss when dealing with issues like these. First set everything to auto then systematically experiment with every permutation.

    Good luck!

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

Sidebar

Related Questions

I am new to HTML and CSS. I have added a CSS class to
I have this HTML dropdown: <form> <input type=text id=realtxt onkeyup=searchSel()> <select id=select name=basic-combo size=1>
if i have a dropdown with the following html: <select id=myDropdown name=myDropdown> <option value=6>Six</option>
Consider the following HTML snippet. The desired effect is to have a dropdown be
I have dropdown menu..which is dynamic.. How can get value of the last item
So i have this dropdown made in html/css/js.. it slides down on mouseover, but
So I have this dropdown menu, when you hover over a link a dropdown
I want to create a Dropdown menu where I have 3 level, I have
I have Dropdown and on click of a button, I want to display data
I have a static dropdown with the following html. <asp:DropDownList width=100px ID=dropDownActive Runat=server> <asp:ListItem

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.