Floating dropdown #41285
Unanswered
LimboticWorlds
asked this question in
Q&A
Floating dropdown
#41285
Replies: 1 comment
-
Going through your code, the issue might be because of the d-block class in your ul element. In Bootstrap, dropdown menus are designed to be hidden by default and only appear when toggled by adding the show class. The d-block might force element to always display as a block, which prevents the menu from hiding as expected. You might want to remove the d-block class. Let me know if this works. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ok, so I noticed there is a "floating" (not sure if that's the right word) drop down menu on some of the examples pages that allows you to change the page to dark or light themes. I want to use that in my website but I want to use it for bookmarks on the page. No matter what I do the dropdown menu won't "hide" and I am not sure what I am missing. I have tried combing through the differences between the HTML but I can't figure it out.



The first is what I am attempting to create, the second is what I keep getting. Hopefully you understand what I am trying to do and what I am referring to. Any help would be appreciated.
For a bit of understanding I am attempting to make the dropdown menu look like the third picture. I tried to remove .position-static but it didn't do anything. Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions