Skip to content

Instantly share code, notes, and snippets.

@komplexb
Last active December 16, 2015 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save komplexb/5422542 to your computer and use it in GitHub Desktop.
Save komplexb/5422542 to your computer and use it in GitHub Desktop.
checkboxes, radiobuttons wrapper
.checkbox-wrapper, .radiobutton-wrapper {
cursor: pointer;
display: block;
padding-left: 15px;
text-indent: -15px;
}
.checkbox > input[type="checkbox"], .radiobutton-wrapper > input[type="radio"] {
height: 13px;
margin: 0;
padding: 0;
position: relative;
top: -2px;
vertical-align: bottom;
width: 13px;
}
<label class="checkbox-wrapper">
<input type="checkbox">
Label Text
</label>
<label class="radiobutton-wrapper">
<input type="radio">
Label Text
</label>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment