+ 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>
5 Answers
+ 1
Use the align tag to position the button:
https://code.sololearn.com/WAiE4BCd2HsL/?ref=app
+ 1
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
Can you help add css to it.
0
Like having it with paddings. That wherever you click on the padding it gives access.
0
Thanksâââ