Created
May 4, 2014 04:21
-
-
Save Liampronan/efbaea8dde6f2d596617 to your computer and use it in GitHub Desktop.
Bootstrap - align labels with checkbox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row search-options"> | |
<div class="col-sm-3 col-sm-offset-1"> | |
<label class="label-fix"><input type="checkbox" value="Food" class="text-center label-fix"/> | |
Food</label> | |
<!--<label class="label-fix checkbox" for="food">Food</label>--> | |
</div> | |
<div class="col-sm-3 col-sm-offset-1"> | |
<label class="label-fix"><input type="checkbox" value="Booze" class="text-center label-fix"/> | |
Booze</label> | |
</div> | |
<div class="col-sm-3 col-sm-offset-1"> | |
<label class="label-fix"><input type="checkbox" value="All" class="text-center label-fix"/> | |
All</label> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
label.label-fix{ | |
display: block; | |
padding-left: 20px; | |
text-indent: -15px; | |
line-height: 18px; | |
cursor: pointer; | |
} | |
input.label-fix{ | |
width: 13px; | |
height: 13px; | |
padding: 0; | |
margin:0; | |
vertical-align: bottom; | |
position: relative; | |
top: -1px; | |
*overflow: hidden; | |
cursor: pointer; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment