How can i centralized the "Sign up" button. The below code is having the botton on the left. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i centralized the "Sign up" button. The below code is having the botton on the left.

<div class="btn"> <button type="submit">Sign Up</button> </div>

25th Jul 2019, 2:54 PM
ADEBISI MAYOWA
5 Answers
+ 1
Use the align tag to position the button: https://code.sololearn.com/WAiE4BCd2HsL/?ref=app
25th Jul 2019, 3:00 PM
Lennie
Lennie - avatar
0
Can you help add css to it.
25th Jul 2019, 3:08 PM
ADEBISI MAYOWA
0
Like having it with paddings. That wherever you click on the padding it gives access.
25th Jul 2019, 3:11 PM
ADEBISI MAYOWA
0
use flexbox on container or margin: auto on element to center it .btn { display: flex; justify-content:center; } OR button { display: block; margin: auto; }
25th Jul 2019, 3:11 PM
Aegon
Aegon - avatar
0
Thanks✌✌✌
25th Jul 2019, 3:28 PM
ADEBISI MAYOWA