+ 2
How to make a drop down button that when I click on it, it shows me several elements that I have put?
I used the search for this application and searched the internet for the answer but I have not had any results that have worked for me if you can help me I would really appreciate it
5 ответов
+ 7
css is required for that.You can use the hover of css.
+ 5
You can make the drop down button by using a main element like div containing other elements like a span or other ones
Then just keep that main elements height set to 0 ,and when you click on it set it height to whatever you want
+ 5
This is a live example in JavaScript, where the drop down button will be implemented into a navbar:
https://code.sololearn.com/WLpJTMTqV4Bl/?ref=app