mercredi 5 avril 2017

Can't make this site responsive with COL

I am using COL to make the checkboxes responsive... but its not working... and how does col excactly work? and is there maybe a other way to make it responsive?

here is the site: http://ift.tt/2nYJfHc

This is the checkbox:

<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"></div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">



    <div class ="col-xs-12 col-sm-6 col-md-2 col-lg-2"> 
 <input id="box1" type="checkbox" />
  <label for="box1">Checkbox 1</label>
    </div>
    <div class ="col-xs-12 col-sm-6 col-md-2 col-lg-2">  
   <input id="box2" type="checkbox" />
  <label for="box2">Checkbox 1</label>
    </div>
    <div class ="col-xs-12 col-sm-6 col-md-2 col-lg-2"> 
   <input id="box3" type="checkbox" />
  <label for="box3">Checkbox 1</label>
    </div>
    <div class ="col-xs-12 col-sm-6 col-md-2 col-lg-2"> 
   <input id="box4" type="checkbox" />
  <label for="box4">Checkbox 1</label>
    </div>
    <div class ="col-xs-12 col-sm-6 col-md-2 col-lg-2"> 
    <input id="box5" type="checkbox" />
  <label for="box5">Checkbox 1</label>
    </div>


</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"></div>

css of checkbox:

input {
  position: absolute;
  top: -9999px;
}

label {
  display: block;
  position: relative;
  margin: 20px;
  padding: 15px 30px 15px 62px;
  border: 3px solid #fff;
  border-radius: 100px;
  color: #fff;
  background-color: #6a8494;
  box-shadow: 0 0 20px rgba(0, 0, 0, .2);
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-transition: background-color .2s, box-shadow .2s;
  transition: background-color .2s, box-shadow .2s;
}

label::before {
  content: '';
  display: block;
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  width: 32px;
  border: 3px solid #fff;
  border-radius: 100px;
  -webkit-transition: background-color .2s;
  transition: background-color .2s;
}

label:first-of-type {
  -webkit-transform: translateX(-40px);
          transform: translateX(-40px);
}

label:last-of-type {
  -webkit-transform: translateX(40px);
          transform: translateX(40px);
}

label:hover, input:focus + label {
  box-shadow: 0 0 20px rgba(0, 0, 0, .6);
}

input:checked + label {
  background-color: #ab576c;
}

input:checked + label::before {
  background-color: #fff;
}




Aucun commentaire:

Enregistrer un commentaire