+ 3
Align a button?
For my code, I need the button to be aligned to the center, but I can't change its position. Does anyone know how to center the button?
13 Answers
+ 4
You can do it by css too. Text-align: center;
+ 2
Of course. Could you link your code please?
+ 2
<center><button></button></center>
+ 1
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥
Thank you!
+ 1
Ja Play
It's okay, thanks for your concern!
0
Change display:block
Set :width
Margin:auto
Try this
0
<center><button>button</button></center>
- 1
<div>
<input type="button" value="press">
</div>
- 2
You can do it by ccs and java also