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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:10:36+00:00 2026-05-27T07:10:36+00:00

Is there a particular way to make a <ul> a height? I have this

  • 0

Is there a particular way to make a <ul> a height? I have this structure:

<ul class="dropdown">
    <li></li>
    <li></li>  
    <li></li>
    <li>
         <ul id="sub_menu1"> // I have 4 of these
          <li></li> 
          <li></li>
         </ul>
    </li>
</ul>

CSS:

ul.dropdown {
    font-family: 'CapsuulaRegular', Arial, sans-serif;
    position: relative;
    padding: 0;
    margin: 0;
    z-index: 1;
}
ul.dropdown li a {
    color: #b38201;
    font-size: 18px;
}
ul.dropdown li {
    display: block;
    float: left;
    color: #b38201;
    font-weight: normal;
    text-transform: uppercase;
    padding: 38px 10px 12px 7px;
    margin-left: 2px;
}
ul.dropdown a:hover {
    color: #002565;
    background-image: url(../images/menu-hover.png);
    background-position: 50% 100%;
    background-repeat: no-repeat;
}
.navSelected {
    color: #002565;
    background-image: url(../images/menu-hover.png);
    background-position: 50% 100%;
    padding:0;
    margin:0;
    background-repeat: no-repeat;
}
ul.dropdown a:active {
    color: #ffa500;
}
ul.dropdown li a {
    padding: 38px 7px 12px 7px;
}
ul.dropdown li:last-child a {
    border-right: none;
} 
/* Doesn't work in IE */
ul.dropdown li.hover,  ul.dropdown li:hover {
    color: black;
    position: relative;
}
ul.dropdown li.hover a {
    color: black;
}
/* LEVEL TWO  */    
#sub_menu1 {
    width: 175px;
    position: absolute;
    left: -175px;
}
#sub_menu2 {
    width: 175px;
    position: absolute;
    left: 0px;
}
#sub_menu3 {
    width: 175px;
    position: absolute;
    left: 175px;
}
#sub_menu4 {
    width: 175px;
    position: absolute;
    left: 200px;
}
ul.dropdown ul {
    visibility: hidden;
    position: relative;
    top: 100%;
    left: 0px;
    font-size: 10px !important;
    padding: 0;
    margin: 0;
    display: block;
}
ul.dropdown ul li {
    background: #ccc;
}
ul.dropdown ul li {
    font-weight: normal;
    background: #f1f3f7;
    color: #000;
    /*border-bottom: 1px solid #ccc;*/
     float: none;
    padding: 10px;
    margin: 0;
    text-transform: none;
}

I having trouble making the <ul> that are hovered the same height. The go depending on what content is in them.

I want all the menus to be the same height, or within a wrapper of fixed height/width..

  • 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-27T07:10:37+00:00Added an answer on May 27, 2026 at 7:10 am

    does this solve your question?

    ul { height: 150px; }
    

    if you apply this, all of your ul’s will have the height of 150 pixels.

    Edit

    Well, you’re using floating. Floating elements are ignored in the flow of the document. To overcome this problem you should add a overflow: hidden; to your ul.dropdown

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

Sidebar

Related Questions

Is there a way to require that a class have a particular abstract member?
Is there a particular way to initialize an IList<T> ? This does not seem
Is there any way to ensure that a class posts a particular NSNotification? (I
Is there any way to make resource forks uncopyable? In particular I'm setting a
Is there a way to make issues publicly viewable in JIRA for a particular
Is there any way to check if a particular plugin is available? Imagine that
Is there any way to find particular C language function's input and output parameters
Is there a way to obtain a particular bit in a hexadecimal number to
Is there a way to determine who is logged on to a particular (remote)
Is there a way to programatically track the size of a particular session on

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.