I encountered an issue trying to center a button, I attempted to use text-align: center
, but it didn't have the desired effect.
.regis-btn {
border-radius: 0px;
text-align: center;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-o-border-radius: 10px;
-ms-border-radius: 10px;
}
<form action="" method="post" role="form>
<div class="form-group>
<label for="cellphone>Cellphone Number</label>
<input type="text" class="form-control" id="cellphone" minlength="10" placeholder="Cellphone>
</div>
<div class="form-group>
<label for="name>Username</label>
<input type="text" class="form-control" id="name" placeholder="Username>
</div>
<div class="form-group>
<label for="seriesnum>Series Number</label>
<input type="text" class="form-control" id="seriesnum" placeholder="Series Number>
</div>
<button type="button" class="btn regis-btn" id="register" style="background: #FFCC00;>
<span> Register </span>
</button>
</form>