How can i centralized the "Sign up" button. The below code is having the botton on the left. | Sololearn: Learn to code for FREE!

+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>

7/25/2019 2:54:28 PM

ADEBISI MAYOWA

5 Answers

New Answer

+1

Use the align tag to position the button: https://code.sololearn.com/WAiE4BCd2HsL/?ref=app

0

Can you help add css to it.

0

Like having it with paddings. That wherever you click on the padding it gives access.

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; }

0

Thanks✌✌✌