html - How to put a label to right of a checkbox in bootstrap -


i've been trying lots of ways put <input type="checkbox" id="123"/> infront of label, they're leaving huge gap between theirselves. workaround? here's html:

<div class="row">     <div class="col-sm-6">         <div class="input-group input-group-sm">             <input type="checkbox" id="processingconsultantyn" value="0" />             <label class="input-group-addon input-group-addon-pireus" aria-describedby="processingconsultantyn" id="lbprocessingconsultant" for="processingconsultantyn">Обработва се от Кредитен Консултант</label>         </div>     </div> </div> 

here's how looks when being displayed on website , want fix: enter image description here

try below code replace label tag class checkbox-inline.

<div class="row">    <div class="col-sm-6">      <div class="input-group input-group-sm">        <input type="checkbox" id="processingconsultantyn" value="0" />        <label class="checkbox-inline" aria-describedby="processingconsultantyn" id="lbprocessingconsultant" for="processingconsultantyn">Обработва се от Кредитен Консултант</label>      </div>    </div>  </div>


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -