3
How do I align a check box vertically in the center of Row?
My project is Asp.net core mvc.
input[type="text"], select {
/*font-size: 13px;*/
}
.selectClass {
/*font-size: 13px;*/
}
label {
/*font-size: 13px;*/
/*color:#808080;*/
}
form label {
font-weight:normal;
}
input[type=text] {
width: 100%;
/*padding: 12px 20px;*/
/*margin: 8px 0;*/
box-sizing: border-box;
/*border: 1px solid #555;*/
outline: none;
}
input[type=text]:focus {
background-color: lightblue;
color:black;
}
textarea:focus {
background-color: lightblue;
color: black;
}
/*.distanciaForms div[class^="col-"] {*/
/*padding: calc(15px / 2);*/ /* calcula a distancia entro um inpute e outro e os cantos da tela*/
/*}*/
.form-group {
margin-bottom: 1% !important;
}
<div class="form-group row">
<div class="col-md-10">
<div class="col-md-3">
<button class="btn btn-primary form-control" id="btn-add-telefone">Novo contato</button>
</div>
<div class="col-md-12" id="div-contatos">
<div class="row">
<div class="col-md-4">
<label name="PessoaContatoViewModel[0].ContatoTipoId" class="control-label">Tipo de Contato</label>
<select name="PessoaContatoViewModel[0].ContatoTipoId" data-plugin="selectpicker" title="Selecione uma opção" class="form-control show-tick show-menu-arrow"></select>
</div>
<div class="col-md-5">
<label name="PessoaContatoViewModel[0].Contato" class="control-label">Contato</label>
<input type="text" name="PessoaContatoViewModel[0].Contato" class="form-control" />
</div>
<div class="col-md-3">
<div class="checkbox-custom checkbox-default">
<input type="checkbox" name="PessoaContatoViewModel[0].ContatoPrincipal" checked
autocomplete="off" />
<label for="PessoaContatoViewModel[0].ContatoPrincipal">Contato Principal</label>
</div>
</div>
</div>
</div>
</div>
</div>
It’s Bootstrap 3 or 4?
– hugocsl
A simple way to do this is by a label "empty" after its col-Md-3: <label class="control-label"> </label>
– Roque Santos
Is Bootstrap 3...
– Master JR
It worked @Roque Santos!!! Thanks!!! Comment on the main post for me to mark as a reply... :)
– Master JR
Feito @Masterjr
– Roque Santos