+ 5
How to center a button
How can I center a button? (A code example would be awesome) https://code.sololearn.com/W5sSHi0puVlR/?ref=app
4 Answers
+ 1
https://code.sololearn.com/WwLB56QJ7503/?ref=app
+ 4
Brains
Thank you!!!
+ 3
166239
Thank you, but Brains already answered excellently. He showed me how to use a <center> tag. Thanks anyway!
+ 2
You can style it with CSS, or use a shorthand attribute on a div tag like this:
<div align=âcenterâ>
<input type=âbuttonâ value=âClick Me!â>
</div>