css - Bootstrap 3 form checkbox label doesn't align with checkbox input in Chromium + Firefox -
css - Bootstrap 3 form checkbox label doesn't align with checkbox input in Chromium + Firefox -
in both chrome , firefox:
form-inline causes label shifted downwards , space between checkbox , label narrower when using form-horizontal. form-horizontal displays perfectly here's demo in jsfiddle here's code: class="lang-html prettyprint-override"><form class="form-inline"> <div class="checkbox"> <label> <input type="checkbox"/> test againn </label> </div> </form> here's screenshot:
is there way create checkboxes aligned correctly in both browsers or missing something?
this issue in browsers (that i've tested)
here's screenshot - i added gray border it's easier tell it's not lining up.
here's demo reproduces issuethe issue occurs when inline form on screen larger 768px.
particularly, thing messes alignment line of forms.less (which introduced this commit):
class="lang-css prettyprint-override">float: none; naively, setting value float: left seems prepare problem, i'm not sure other issues may arise.
@media (min-width: 768px) { .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { float: left; margin-right: 5px; } } here's working version of code these changes other that, you'd have tweak css
css twitter-bootstrap cross-browser twitter-bootstrap-3 alignment
Comments
Post a Comment