Skip to content

Instantly share code, notes, and snippets.

Created July 10, 2017 18:36
Show Gist options
  • Save anonymous/9ddabae36b5eefd449d43b078d4a3b14 to your computer and use it in GitHub Desktop.
Save anonymous/9ddabae36b5eefd449d43b078d4a3b14 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/towugonesu
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
label.btn > input[type="checkbox"],input[type="radio"] {
position: absolute;
clip: rect(0px 0px 0px 0px);
pointer-events: none;
}
.btn.rounded {
border-radius: 15px;
}
</style>
</head>
<body>
<div class="col-xs-3">
<label class="btn btn-default rounded">
aaa
<input type="checkbox">
</label>
</div>
<div class="col-xs-3">
<label class="btn btn-default rounded">
aaa
<input type="checkbox">
</label>
</div>
<div class="col-xs-3">
<label class="btn btn-default rounded">
aaa
<input type="radio">
</label>
</div>
<div class="col-xs-3">
<label class="btn btn-default">
aaa
<input type="radio">
</label>
</div>
<script id="jsbin-source-css" type="text/css">label.btn > input[type="checkbox"],input[type="radio"] {
position: absolute;
clip: rect(0px 0px 0px 0px);
pointer-events: none;
}
.btn.rounded {
border-radius: 15px;
}</script>
</body>
</html>
label.btn > input[type="checkbox"],input[type="radio"] {
position: absolute;
clip: rect(0px 0px 0px 0px);
pointer-events: none;
}
.btn.rounded {
border-radius: 15px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment