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
5 Answers
+ 1
Mante Dominic Kwesi
.container{
text-align:center;
}
edit]:
https://code.sololearn.com/W3dIvUF4jTdZ/?ref=app
+ 2
https://code.sololearn.com/W4wWV586QgoX/?ref=app
+ 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.
0
Try
.btn {
margin: auto;
}
In a nutshell: make sure that the margin-right and margin-left properties have a auto value
0
Step:-1 First Block the Display of Div using Dispaly:block;
Step:-2 and Use margin:auto; in your div