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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T06:10:39+00:00 2026-05-19T06:10:39+00:00

I have lists nested within lists like this: <ul> <li><a href=#>Rings</a></li> <li><a href=#>Bracelets</a></li> <li><a

  • 0

I have lists nested within lists like this:

<ul>
    <li><a href="#">Rings</a></li>
    <li><a href="#">Bracelets</a></li>
    <li><a href="#">Earrings</a>
        <ul>
            <li><a href="#">Diamond Earrings</a></li>
            <li><a href="#">Hoop Earrings</a></li>
            ...
        </ul>
    </li>
    <li><a href="#">Necklaces and Pendants</a>
    ...
</ul>

The lists are floated left. The nested lists are defaulted to not be displayed. So it ends up looking like this:

alt text

This so far I have. Now what I want to do is whenever a list is hovered that has a nested list (for example Earrings). I want the nested list to be revealed like so:

alt text

Notice what all is going on here, its not just telling the nested list to be displayed, that would not look right. Its putting them in a block between the first level lists where they wrap (between “Sports Jewelry” and “Charms”).

I am not sure how to go about this.

Any ideas?

  • 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-19T06:10:40+00:00Added an answer on May 19, 2026 at 6:10 am

    The easiest way I think would be to create different lists, for each line. Something like the following:

    <ul>
        <li><a href="#">Rings</a></li>
        <li><a href="#">Bracelets</a></li>
        <li><a href="#">Earrings</a>
            <ul>
                <li><a href="#">Diamond Earrings</a></li>
                <li><a href="#">Hoop Earrings</a></li>
                ...
            </ul>
        </li>
        <li><a href="#">Necklaces and Pendants</a>
        ...
    </ul>
    <ul><li><a href="#">Charms</a></li>
        <li><a href="#">Mens Jewelry</a></li>
         ....
    

    So when you hover a li of the first line, the inner ul will be appear above the second line according to the normal flow.

    To hide the inner ul, you can use the display:none as initial state, and show it using ul li:hover {display:block; }

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

Sidebar

Related Questions

I have a string with nested groups like this ('blabla' is some text within
I'm working on a navigation control. I have nested lists which creates this: What
So lets say I have an incredibly nested iterable of lists/dictionaries. I would like
I have a nested list like this: <ul class=list> <li class=list_item_type_1> <ul class=list> <li
I have a nested list something like this: PLACES = ( ('CA', 'Canada', (
I have nested lists that represents a table of sorts. I would like to
I have a nav bar with children unordered lists nested under the main navbar
I can't figure out what is going on here. I have some nested lists
I have a nested list comprising ~30,000 sub-lists, each with three entries, e.g., nested_list
I have a Excel CSV files with employee records in them. Something like this:

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.