Answers for "how to center button in div"

7

button center bootstrap

<div class="text-center">
	<button type="button" class="btn btn-primary">My button</button>
</div>
Posted by: Guest on June-30-2020
9

html center button

button{
    /*Change the width as much as you like, but make sure 
    margin-left and margin-right + width = 100%*/
    width:50%;
    margin-left:25%;
    margin-right:25%;
}
Posted by: Guest on April-29-2020

Browse Popular Code Answers by Language