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 Kamat
Lakshay Kamat - avatar