<form>
    <div class="book-category">
        <input id="id-1" type="checkbox"/>
        <label for="id-1">banda-desenhada</label>
    </div>
    <div class="book-category">
        <input id="id-2" type="checkbox"/>
        <label for="id-2">ficção & romance</label>
    </div>
      <div class="book-category">
        <input id="id-3" type="checkbox"/>
        <label for="id-3">aventura</label>
    </div>
</form>
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);

body { background-color: #faf9ed;}

form { margin:100px; }

.book-category {
  font-family: 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  margin:10px 30px 10px;
  display:inline-block;
}

.book-category input[type=checkbox] { display:none; }

label {
  position: relative;
  cursor:pointer;
  display: inline-block;
  line-height: 24px;
  font-weight: 700;
  color: #3f3f3f;
  border: 1px solid #DFDED3;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  padding: 0 10px 0 10px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none; 
  background: #F8F8F8;
  background: -moz-linear-gradient(top, #F8F8F8 2%, #F0F0F0 99%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(2%,#F8F8F8), color-stop(99%,#F0F0F0));
  background: -webkit-linear-gradient(top, #F8F8F8 2%,#F0F0F0 99%);
  background: -o-linear-gradient(top, #F8F8F8 2%,#F0F0F0 99%);
  background: -ms-linear-gradient(top, #F8F8F8 2%,#F0F0F0 99%);
  background: linear-gradient(to bottom, #F8F8F8 2%,#F0F0F0 99%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f8f8f8', endColorstr='#f0f0f0',GradientType=0 );
  text-shadow: 0 1px 0 #fff;
  box-shadow: inset 0 1px 0 0 #fff, 0 1px 1px 0 rgba(0,0,0,0.3);
}
  
label:after {
  content: '';
  position: absolute;
  top: 2px;
  right: -28px;
  height: 22px;
  width: 31px;
  background: url(http://joaorosado.com/cat-check.png) 0 0 no-repeat;
}

.book-category input[type=checkbox]:checked + label:after {
   background: url(http://joaorosado.com/cat-check.png) -31px 0 no-repeat;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.