0

I have a checkbox with class="form-control", I note that the checkbox is centered inside the form-control border, how to left align it:

My HTML code is:

 <input type="checkbox" class="form-control" style="margin: 0px 0px 0 !important;" id="txtPEPFlag" name="txtPEPFlag" value="Y">

It appears as (IE9):

enter image description here

But I need it to look like this:

enter image description here

3 Answers3

1
 <input type="checkbox" class="form-control" style="margin-right:30px!important;;" id="txtPEPFlag" name="txtPEPFlag" value="Y">
Ramesh Kumar
  • 76
  • 10
0

Checkbox doesn't work well when you give it form-control class, check here: https://getbootstrap.com/docs/3.3/css/#forms
In the example they put it inside a checkbox class div:

<div class="checkbox">
    <label>
      <input type="checkbox"> Check me out
    </label>
</div>
Amr Elgarhy
  • 59,046
  • 67
  • 178
  • 291
0

try to use the grid columns from bootstrap