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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:35:20+00:00 2026-06-15T14:35:20+00:00

I’m creating a CSS multidimensional menu. I’m using transitions to fade it in/out to

  • 0

I’m creating a CSS multidimensional menu. I’m using transitions to fade it in/out to avoid the moving the mouse 1 pixel away minimizing the menu issue. It works, however when you move the mouse away, if there’s more than 1 item in the submenu all but the first item is invisible for the ease out transition.

Relevant code:

ul.menu li>ul {
....
    overflow:hidden;
    visibility:hidden;
    opacity:0;
    transition:visibility 0s linear 0.5s, overflow 0s linear 0.5s, opacity 0.5s linear 0s;
}
ul.menu li:hover>ul {
    overflow:visible;
    visibility:visible;
    opacity:1;
    transition:visibility 0s linear 0s, overflow 0s linear 0.5s, opacity 0.5s linear 0s;
}

Jsfiddle: http://jsfiddle.net/fGWzg/
How to reproduce issue: Move your mouse over the first “hi” in the main bar, then move it off it. Only the first item will remain.

  • 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-15T14:35:21+00:00Added an answer on June 15, 2026 at 2:35 pm

    I believe you are talking about Firefox, as webkit browsers do not show any transition, you may want to view your website in Chrome or Internet Explorer. You should always be developing in Chrome, it is simply superior to Firebug now.

    As for your problem:

    ul.menu li > ul {
        height: 100%; /* delete */
        left: 0;
        margin: 0;
        opacity: 0;
        ...
    }
    

    After much work:

    /* reset */
    body {
        margin:0;
    }
    ol, ul {
        margin: 0;
        padding: 0;
    }
    
    /* global */
    ul.menu,
    ul.menu ul {
        list-style-type: none;
    }
    ul.menu,
    ul.menu a {
        color: white;
    }
    ul.menu a {
        display: block;
        text-decoration: none;
    }
    ul.menu li {
        position: relative;
        height: 35px;
        line-height: 35px;
        font-weight: bold;
        text-align: center;
    }
    ul.menu li:hover {
        background-color: #11689E;
    }
    
    /* menu (just the first one) */
    ul.menu {
        padding-left: 35px;
        background: #1BBFE0;
    }
    ul.menu > li {
        margin-right: 8px;
        display: inline-block;
        *display: inline;
        *zoom: 1;
        width: 5%;
        background-color: #1B94E0;
    }
    
    /* sub-menus (fading menus) */
    ul.menu ul {
        position: absolute;
        width: 100%;
        background-color: #1B94E0;
        visibility: hidden;
        opacity: 0;
    }
    ul.menu li:hover > ul {
        visibility: visible;
        opacity: 1;
        -webkit-transition: opacity .5s linear;
           -moz-transition: opacity .5s linear;
             -o-transition: opacity .5s linear;
                transition: opacity .5s linear;
    }
    
    /* "pop out" sub-menus */
    ul.menu li > ul ul {
        top: 0;
        right: -100%;
    }
    

    http://jsfiddle.net/654Ta/2/

    Works in all browsers except IE7 and below (due to the > selector not supported). If you replace those, it will work in IE6.

    Cheers

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am reading a book about Javascript and jQuery and using one of the
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I know there's a lot of other questions out there that deal with 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.