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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:22:42+00:00 2026-05-31T23:22:42+00:00

I am trying to create a multi level navigation menu with css. I guess

  • 0

I am trying to create a multi level navigation menu with css. I guess it is quite simple but I cant figure out where I am having problem. Below is my CSS.

/********** General Styles **********/

body{
font-family:Arial, Tahoma, sans-serif;
font-size:14px;
color:#444549;
}

/********** Structure Styles **********/

div.center-container{
    width:980px;
    margin:0 auto;
    overflow:hidden;
    position: relative;
    background: #cbcbcb;
}

.empty-div{
height: 400px;
}
/********** Navigation **********/

#menu-container{
margin-top:100px;
background:url(../img/nav_bg.png) 0 0 repeat-y;
height:42px;
}

#nav{
float:left;
margin:0;
padding:0;
margin-left: 48px;
}

#nav li{
list-style:none;
position:relative;
}

#nav li a, #nav li{
    float: left;
}

#nav li a{
    text-decoration: none;
    padding: 1em 1em;
    color: #fff;
    text-transform:capitalize;
    border-bottom: 1px solid #cbcbcb;
}

#nav li a:hover{
    background:white;
    color: #00c6ff;

    /*
     -moz-border-radius-topright: 10px;
    -moz-border-radius-topleft: 10px;
    -webkit-border-top-right-radius: 10px;
    -webkit-border-top-left-radius: 10px;
    border-top-left-radius: 10px;
    border-top-left-radius: 10px;
    */

}

/********** Sub-menu **********/
#nav li ul{
display:block;
position: absolute;
left:0;
top:100%;
padding:0; margin:0;
}

And this is my HTML

<body>
<div id="header-container"><!--  --></div>

<!-- Navigation -->
<div id="nav-container">
    <div class="center-container">
        <div id="menu-container">
            <ul id="nav">
                <li><a href="#">about us</a></li>
                <li><a href="#">solutions area</a>
                    <ul>
                        <li><a href="#">sub menu example 1</a></li>
                        <li><a href="#">sub menu example 2</a></li>
                        <li><a href="#">sub menu example 3</a></li>
                        <li><a href="#">sub menu example 4</a>
                            <ul>
                                <li><a href="#">sub menu example 1</a></li>
                                <li><a href="#">sub menu example 2</a></li>
                                <li><a href="#">sub menu example 3</a></li>
                                <li><a href="#">sub menu example 4</a></li>
                                <li><a href="#">sub menu example with an extra long title 5</a></li>
                            </ul>
                        </li>
                        <li><a href="#">sub menu example with an extra long title 5</a></li>
                    </ul>
                </li>
                <li><a href="#">service and support</a></li>
                <li><a href="#">industries</a></li>
                <li><a href="#">products</a></li>
                <li><a href="#">news &and; media</a></li>
                <li><a href="#">contact &and; support</a></li>
            </ul>
        </div> <!-- end menu-container -->
    </div> <!-- end center-container -->
</div> <!-- end nav-container -->

<div id="banner-container">
    <div class="center-container">
        <div class="empty-div"></div>
    </div> <!-- end center-container -->
</div> <!-- end banner-container -->

<div id="footer-container"><!--  --></div>

I also have a reset.css that reset all browser css. The problem is that the submenu doesn’t appear but when I check in developer tools its exactly where it should be (is invisible).

  • 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-31T23:22:43+00:00Added an answer on May 31, 2026 at 11:22 pm

    Give background color to your body instead of div.center-container because define .center-container two time in HTML markup so, the second overlap that first & remove overflow:hidden also.

    Write like this:

    body{
     background: #cbcbcb;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a multi-stage comparator in verilog and I can't figure out
I'm trying to build a simple multi-level UL Horizontal Accordion (or slide menu) in
I'm trying to create a multi-level editor in MVC3. By multi-level I mean that
I'm trying to create a multi-level ajax form on my rails app that can
jsFiddle: http://jsfiddle.net/4z2Vx/ I'm trying to create a multi-column dropdown/menu widget. The image on the
I having some trouble trying to figure out how to implement a Rails 3
So I'm trying to create a simple multi-threaded game engine for the game I
I'm having a bit of a trouble trying to create a multi window'ed console
I am trying to create a multi-view app with navigation template. I want table
I'm new to jquery, but I'm trying to use it to create a multi-step

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.