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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:34:31+00:00 2026-05-25T13:34:31+00:00

I am new to CSS and I am trying to pop up a sub

  • 0

I am new to CSS and I am trying to pop up a sub menu in my vertical menu, but it is not doing it… Please see my CSS and HTML below:

.glossymenu{
    list-style-type: none;
    margin: 5px 0;
    padding: 0;
    width: 130px;
    border: 1px solid #9A9A9A;
    border-bottom-width: 0;
    position: relative;
    top: 15px;
}

.glossymenu li a{
    background: white url(../images/glossyback.gif) repeat-x bottom left;
    font: bold 11px/1.5em Verdana;
    font-size: 120%;
    color: white;
    display: block;
    width: auto;
    padding: 3px 0;
    padding-left: 10px;
    text-decoration: none;
}

// IE only. Actual menu width minus left padding of A element (10px)
* html .glossymenu li a{
    width: 130px;
}

.glossymenu li a:visited, .glossymenu li a:active{
    color: white;
}

.glossymenu li a:hover{
    background-image: url(../images/glossyback2.gif);
}


ul.sub-level {
    display: none;
}

li:hover .sub-level {
    background: #999;
    border: #fff solid;
    border-width: 1px;
    display: block;
    position: absolute;
    left: 100px;
}

ul.sub-level li {
    border: none;
    float: left;
    width: 150px;
}

and my HTML:

<div id="side">
    <ul class="glossymenu">
        <li><a href="#">MENU</a></li>
        <ul class="sub-level">
            <li><a href="#"><span>Appetizer</span></a></li>
            <li><a href="#"><span>Beverages</span></a></li>
            <li><a href="#"><span>Desserts</span></a></li>              
        </ul>
        <li><a href="#">LOCATIONS</a></li>  
        <li><a href="#">HOURS</a></li>
    </ul>
</div>
  • 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-25T13:34:32+00:00Added an answer on May 25, 2026 at 1:34 pm

    The submenu element should be inside one of the li elements.

    Check this out.

    HTML

    <div id="side">
        <ul class="glossymenu">
            <li><a href="#">MENU</a>       
                <ul class="sub-level">
                    <li><a href="#"><span>Appetizer</span></a></li>
                    <li><a href="#"><span>Beverages</span></a></li>
                    <li><a href="#"><span>Desserts</span></a></li>              
                </ul>
            </li>
            <li><a href="#">LOCATIONS</a></li>  
            <li><a href="#">HOURS</a></li>
        </ul>
    </div>
    

    CSS

    .glossymenu{
        list-style-type: none;
        margin: 5px 0;
        padding: 0;
        width: 130px;
        border: 1px solid #9A9A9A;
        border-bottom-width: 0;
        position:relative;
        top:15px;
    }
    
    
    .glossymenu li a{
        background: white url(../images/glossyback.gif) repeat-x bottom left;
        font: bold 11px/1.5em Verdana;
        font-size:120%;
        color: white;
        display: block;
        width: auto;
        padding: 3px 0;
        padding-left: 10px;
        text-decoration: none;
    
    }
    
    
    * html .glossymenu li a{ /*IE only. Actual menu width minus left padding of A element (10px) */
        width: 130px;
    }
    
    .glossymenu li a:visited, .glossymenu li a:active{
        color: white;
    }
    
    .glossymenu li a:hover{
        background-image: url(../images/glossyback2.gif);
    }
    
    
    ul.sub-level {
        display: none;
    }
    
    .glossymenu li:hover > .sub-level {
        background: #999;
        border: #fff solid;
        border-width: 1px;
        display: block;
        position: absolute;
        left: 100px;
    }
    ul.sub-level li {
        border: none;
        float:left;
        width:150px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying out twitter bootstrap and am new to CSS/HTML. Here's my simple
Hi I am new to css media queries so please bear with me, but
I am pretty new at CSS but have been learning, doing my moms small
I'm relatively new with css, but was having an issue trying to accommodate all
i'm very new at css/html, i'm trying to use an image on my page,
new to css. trying to create horizonal and vertical menus with list. my vertical
I'm still new to CSS but I've been trying to find the answer to
I am trying create a new css for shaping my detailsview. But i couldn't
New to CSS. I am trying to center nested divs using the code below
I am trying to create a new html component using javascript and CSS. The

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.