Code Monkey home page Code Monkey logo

Comments (4)

joeldbirch avatar joeldbirch commented on August 29, 2024

I usually avoid debugging individual CSS issues, but you made it easy enough for me to help by creating a jsFiddle, so thanks for that. Here is the problem:
.main-menu-list > li > ul { display: none; /* <--- remove this */
The CSS that comes with Superfish is a guide that is best not to stray too far from when it comes to the nuts and bolts of how things work. Go for broke on the styling, but the CSS under the "essential styles" comment is important.

Note that the top level items on your menu are not links, so that will likely break keyboard access and possibly various touch devices. Just a heads-up.

Hope this helps.

from superfish.

svivian avatar svivian commented on August 29, 2024

OK thanks. I still feel like there is a bug somewhere, because the plugin isn't adding the sfHover class (or setting the dropdowns to display:none which it does normally). Once you've moved the mouse on and off a few times, the menu does work and it is adding the class.

However, assuming the display property shouldn't be used at all, I would say this is instead an issue with documentation - I was using the standard "suckerfish" system which does use display none/block. Perhaps it should be clearer in step 1 that the display property doesn't work with this.

Interestingly, although the sample CSS uses top, several other properties work fine such as opacity or visibility. Edit: scratch that, those properties are irrelevant. Using no properties at all, it still works.

from superfish.

joeldbirch avatar joeldbirch commented on August 29, 2024

You raise some fair points. Let's leave this issue open and I'll have a think about it all. Thanks for your feedback.

from superfish.

joeldbirch avatar joeldbirch commented on August 29, 2024

v1.5.12 fixes this :)

from superfish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.