Guys please can you help me to create a new button that doesn't display the same submenu. As the first one. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Guys please can you help me to create a new button that doesn't display the same submenu. As the first one.

I am trying to create a new button that doesn't display the same submenu as the first one https://code.sololearn.com/WFUWP4t3qw3s/?ref=app

24th Jan 2022, 2:17 AM
therealghost
therealghost - avatar
5 Answers
24th Jan 2022, 2:58 AM
NEZ
NEZ - avatar
+ 2
https://code.sololearn.com/W4wWV586QgoX/?ref=app
24th Jan 2022, 6:18 AM
Kakashi Hatake
Kakashi Hatake - avatar
+ 2
<div class="container" align="center">.... <\div> brings the button in the middle. But when you click the button, there is a list appear, that is not in the middle.
24th Jan 2022, 6:36 AM
Mir Abir Hossain
Mir Abir Hossain - avatar
0
Try .btn { margin: auto; } In a nutshell: make sure that the margin-right and margin-left properties have a auto value
24th Jan 2022, 3:21 AM
Moshe Schnitzler
Moshe Schnitzler - avatar
0
Step:-1 First Block the Display of Div using Dispaly:block; Step:-2 and Use margin:auto; in your div
24th Jan 2022, 4:40 AM
Lakshay
Lakshay - avatar