How to make a dropdown using CSS only?
1 Like
Hello @kishan.chauhan608 ,
We have recieved your query.
This was a really nice question which you have asked.
Give us a couple of minutes & we will reach out with the solution for your query
Zeba Kainat| TA- Edyoda
1 Like
Hi kishan.chauhan,
Use a container element (like
) to create the dropdown content and add whatever you want inside of it . Wrap a
element around the elements to position the dropdown content correctly with CSS.
eg: and then add appropriate CSS property. Please refer this link for CSS https://stackoverflow.com/questions/56747068/how-can-i-create-a-dropdown-menu-using-only-css
eg: and then add appropriate CSS property. Please refer this link for CSS https://stackoverflow.com/questions/56747068/how-can-i-create-a-dropdown-menu-using-only-css
You can see the CSS example there.
1 Like