+ 2

Help me style my dropdown

So I have this code. I want to know if it's possible to style it like a dropdown, where the links inside will move with the div and hide when it's closed. And if so, how? If You send me the code, please include comments to explain everything. I'm not using this for anything, I just want to know how for future reference. https://code.sololearn.com/WyOu214KFJg5/?ref=app

12th Jun 2018, 2:41 AM
Daniel Cooper
Daniel Cooper - avatar
3 Respuestas
+ 3
12th Jun 2018, 3:29 AM
Zeke Williams
Zeke Williams - avatar
+ 1
Zeke Williams It's a start, but I want it to animate with the div. You can completely re-write it if that helps.
12th Jun 2018, 4:20 AM
Daniel Cooper
Daniel Cooper - avatar
+ 1
I see. I believe I tried to solve the very same problem you are having. The solution I came to was a "sliding" menu as opposed to a "shrinking-growing" menu. Just run this and use the menu: https://code.sololearn.com/W7StKWhLd5dH/?ref=app Otherwise, I would suggest trying Bootstrap collapse functions.
12th Jun 2018, 6:20 AM
Zeke Williams
Zeke Williams - avatar