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

  • Home
  • SEARCH
  • 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 8528473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:48:32+00:00 2026-06-11T08:48:32+00:00

Could some one explain me how CSS drop downs works? I’ve seen alot of

  • 0

Could some one explain me how CSS drop downs works?

I’ve seen alot of them, most of them has the > selector,

My question is:

How can you make CSS dropdown with the > selector?

I looked towards a lot of tutorials and never understood what does the > do and how does it connects with the HTML classes\Ids.

Could someone explain me that, part by part?
Thank you.

  • 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-11T08:48:34+00:00Added an answer on June 11, 2026 at 8:48 am

    HTML:

    <ul class="menu">
        <li>        
            <span>menu 1</span>
            <ul>
                <li><a href="#" >Sub 1-1</a></li>
                <li><a href="#" >Sub 1-2</a></li>
                <li><a href="#" >Sub 1-3</a></li>
            </ul>
        </li>
        <li>        
            <span>menu 2</span>
            <ul>
                <li><a href="#" >Sub 2-1</a></li>
                <li><a href="#" >Sub 2-2</a></li>
                <li><a href="#" >Sub 2-3</a></li>
            </ul>
        </li>
    </ul>
    

    css:

    ul.menu>li{ /*Only direct children*/
        float:left;
        width: 60px;
    }
    ul.menu li ul{
        display:none; /*not visible*/
    }
    
    ul.menu li:hover ul{
        display:block; /* visible when hovering the parent li */
    }
    

    Explanation is in the css.

    Demo:
    http://jsfiddle.net/FH7Z3/

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

Sidebar

Related Questions

Could some one explain me this while loop? while (list($key, $value) = each($HTTP_GET_VARS)) {
Could some one please explain the advantages and disadvantages of using the new MVC2
could some one please explain this snippet of magento code found in loadByCustomerId() in
Could some one explain to me what a Workspace space is in Aptana and
Could some one explain to me the meaning of the following Ruby code? (I
I found this in initramfs.c, I haven't seen this syntax before, could some one
Could some one give me pointers to tutorials that explains how to write a
I am a bit confused in the call flow of Ajax, Could some one
Could someone explain the difference between the Copy Bundle Resources phase of Xcode and
Could someone explain what I am doing wrong with my classes that my JTabbedPane

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.