I'm struggling with centering the text on Bootstrap radio buttons that I am customizing. I have tried adjusting the margin, align-content, vertical-align, and text-align properties but the text still won't vertically center. Any suggestions?
Here's the HTML:
<div class="root">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active form-check-label">
<input class="form-check-input" type="radio" checked autocomplete="off"> One
</label>
<label class="btn btn-default form-check-label">
<input class="form-check-input" type="radio" autocomplete="off"> Two
</label>
<label class="btn btn-default form-check-label">
<input class="form-check-input" type="radio" autocomplete="off"> Three
</label>
</div>
</div>
Here's the CSS:
@import url('//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css');
.root .btn-group .btn {
border-radius: 0;
border-color: black;
background-color: white;
color: black;
box-shadow: none;
min-width: 90px;
height: 45px;
align-content: center !important;
vertical-align: middle !important;
text-align: center;
}
.root .btn-group .btn .form-check-input {
text-align: center;
vertical-align: middle;
margin: 0px;
}
.root .btn-group .btn.active {
background-color: black;
color: white;
}