Answer the question
In order to leave comments, you need to log in
How to make a dropdown menu using div?
Good day to all.
There is a following menu which I want to implement through html/css. Tell me, is it possible to do this using a div tag, or is there a better option?
On the Internet, all drop-downs are basically implemented through ul and li, which are in nav, but this is not a navigation menu, but a separate button, how would it be more correct to implement it?
Answer the question
In order to leave comments, you need to log in
It can be done.
In those examples on the web, replace ul/li with div.
You make 2 blocks, for example, and through jquery (show as an option, you can toggle) you show the div you need (in your case, fields and a button). The examples have a lot of options.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question