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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:03:36+00:00 2026-06-13T07:03:36+00:00

I am trying to learn HTML/CSS and during the course I thought of creating

  • 0

I am trying to learn HTML/CSS and during the course I thought of creating a CSS based Drop Down Menu Navigation bar. I read almost all of the tutorials I could find and finally built it, but the problem is it doesn’t work as expected, I got the Main menu working but, the lists are not showing up. Here’s the structure of my HTML:

 <div id="Header"/>
 <div id="Navigation" > 
<ul id="Menu-H">

        <li id="HOME"><a href="#">HOME</a></li>

        <li id="ITEMS"><a href="#">ITEMS</a></li>
    <ul >
        <li><a href="#">New Item</a></li>
        <li><a href="#">Search Item</a></li>
    </ul>

        <li id="Category"><a href="#">CATALOG</a></li>

        <li id="Inventory"><a href="#">INVENTORY</a></li>

    </ul>
<a class="LogOutButton" href="#">LOG OUT</a>

And here is the CSS I built:

#Menu-H {    
    padding: 0;
    margin: 0;
    list-style-type: none; 
    margin-left: 50px;      
}

#Menu-H  li {    
    float:left;
}

#Menu-H li:hover {    
    background: #f4f4f4;
    border-radius: 5px 5px 0px 0px;
}

#Menu-H  li  a {

    //border-left: 2px solid blue;
    //border-right: 2px solid blue;
    //background-color: white;
    display:block;
    padding: 5px 15px 5px 15px;
    text-decoration: none;
    text-shadow: 1px 1px 1px #FFFFFF
}

#Menu-H li:hover a {    
    color: #161616;
    text-shadow: 1px 1px 1px#FFFFFF;
}


/* Drop Down Menu.........*/

#Menu-H ul {    
    background: #161616;
    background:rgba(255,255,255,0);
    list-style: none;
    display: none;
}

Menu-H ul li {    
    padding-top: 1px;;
    float: none;    
}

Menu-H li:hover ul {    
    display:block;
}

#Menu-H li:hover a {    
    background: #6b0c36;        
}

#Menu-H li:hover ul li a:hover {    
    background: #333;
}

I can not find the reason.

  • 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-13T07:03:38+00:00Added an answer on June 13, 2026 at 7:03 am

    Your HTML is’t right, You need to place the secondary <ul> inside the parent <li>

    <ul id="Menu-H">
    
            <li id="HOME"><a href="#">HOME</a></li>
            <li id="ITEMS"><a href="#">ITEMS</a>
               <ul>
                  <li><a href="#">New Item</a></li>
                  <li><a href="#">Search Item</a></li>
              </ul>
            </li>   
    
            <li id="Category"><a href="#">CATALOG</a></li>
            <li id="Inventory"><a href="#">INVENTORY</a></li>
    
    </ul>
    

    Also you forgot to add the # in the CSS for two id-s. Here’s a fiddle I made where you can see I made some changes that I was talking about and it works:

    http://jsfiddle.net/SJQ9B/

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

Sidebar

Related Questions

I'm trying to learn CSS/HTML at the moment so sorry if there is a
trying to learn some html/css and I'm having a problem with fixed position divs.
I'm trying to learn some html/css/javascript, so I'm writing myself a teaching project. The
learning html/css here. I can't seem to understand how to tweak this drop down
Im trying to learn to build navigation menus using css. Ive stripped loads of
Trying to learn html/css. I've been looking at the html & css files of
I am trying to learn HTML/CSS by trying to make simple website in HTML/CSS.
I'm new to CSS and HTML here and I'm trying to learn how to
I'm trying to learn html and jquery. My issue is that I have box
I'm a programmer trying to learn some css and I've already run into a

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.