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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:49:30+00:00 2026-05-26T08:49:30+00:00

Currently my css is as follows: #topbar:hover ul{ display: inline;} #topbar { float: left;

  • 0

Currently my css is as follows:

#topbar:hover ul{ display: inline;}

#topbar {
    float: left;
    margin-left: 20px; 
    margin-right: 20px;
    font-family:"Georgia";
}
#topbar ul {
    display: none;
    top:30px;
    position: absolute; border-style:solid; padding-left:10px; padding-right:10px;
border-width:1px; background-color:white;list-style-type: none;}     
}
.clear {
    clear: both;

The structure of my Ul and Li at the moment:

<div id="topbar">
    Title
    <ul>
        <li><a href="#">A</a></li>
        <li><a href="#">B</a></li>
    </ul>
</div>

<div id="topbar">
    Type

    <ul>
        <li><a href="#">A</a></li>
        <li><a href="#">B</a></li>
    </ul>
</div>

<div id="topbar">
    Format

    <ul>
        <li><a href="#">A</a></li>
        <li><a href="#">B</a></li>
    </ul>
</div>

I would to have only 1 div tag therefore nested suits the way to perform such a task. The following is what I have come out with:

<div id="topbar">
   <ul>
    <li> Title
    <ul>
        <li><a href="#">A</a></li>
        <li><a href="#">B</a></li>
    </ul>
    </li>
    <li> Type
    <ul>
        <li><a href="#">A</a></li>
        <li><a href="#">B</a></li>
    </ul>
    </li>
    <li> Format
    <ul>
        <li><a href="#">A</a></li>
        <li><a href="#">B</a></li>
    </ul>
    </li>
   </ul>
</div>

Another reason for doing a nest in ul is because I needed to add #topbar{width:80%}. After organsing my ul and li, I am currently stuck at the css. Can anyone give me a hand for these nested css?

  • 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-26T08:49:31+00:00Added an answer on May 26, 2026 at 8:49 am

    Try nesting your list items like this:

    <ul id="topbar">
        <li>Title
            <ul>
                <li><a href="#">A</a></li>
                <li><a href="#">B</a></li>
            </ul>
        </li>
        <li>Type
            <ul>
                <li><a href="#">A</a></li>
                <li><a href="#">B</a></li>
            </ul>
        </li>
        <li>Format
            <ul>
                <li><a href="#">A</a></li>
                <li><a href="#">B</a></li>
            </ul>
        </li>
    </ul>
    

    And you can style these items specifically with the > selector

    #topbar > li { 
        /* Title, Type, Format */
    }
    
    #topbar > li > ul { 
        /* sub menus */
    }
    

    Working Example: http://jsfiddle.net/hunter/SySqG/

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

Sidebar

Related Questions

My current CSS: .DataForm input { margin-right:9px; display: inline-block; width:21%; min-width:30px; } works fine
Currently i have a css snippet as follows: ul.grid, ul.grid > li { margin:
I currently have the following CSS for my 4 columns which might grow to
Currently I am mostly a PHP/Javascript/CSS/HTML applications programmer. But I would like to start
I'm currently using a combination of CSS and Div tags to achieve rounded corners
I am currently trying to justify text in a textarea, unfortunately the CSS: text-align:
I'm currently studying Ubuntu Server administration, and also HTML/CSS. When it comes to the
How to disable a textbox in CSS? Currently we are having a textbox in
I'm currently using PHP, JAVASCRIPT, MYSQL, XHTML, CSS to develop my site. Note that
I'm using Blueprint as my CSS framework in my rails project. But currently I'm

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.