Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <head>

  <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  <script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
</head>

<body>

  <div class="container">
    
    <div class=" col-sm-6 col-xs-12">
      <p>Groupe de bouton radio</p>
      <div class="custom-radio">
        <input type="radio" id="bouton1" name="groupe" class="form-check-input">
        <label for="bouton1" class="form-check-label"> bouton radio 51
                      </label>
      </div>

      <div class="custom-radio">
        <input type="radio" id="bouton2" name="groupe" class="form-check-input">
        <label for="bouton2" class="form-check-label">   bouton radio                      </label>
      </div>

      <div class="custom-radio">
        <input type="radio" id="bouton3" name="groupe" class="form-check-input">
        <label for="bouton3" class="form-check-label"> bouton radio            
                      </label>
      </div>
    </div>
 <p>D'autres boutons radio</p>
    <div class="form-group row number">
      <div class="col-sm-6 ">
       
        <div class="btn-group btn-group-justified" id="destinataires" data-toggle="buttons">
          <label class="btn level">
                      <input type="radio" name="destinataire" id="numero" value="1" autocomplete="off"> bouton radio 1
                    </label>
          <label class="btn">
                      <input type="radio" name="destinataire" id="liste" value="2" autocomplete="off"> bouton radio 2
                    </label>
        </div>
      </div>
    </div>

 <p>Un simple checkbox</p>
    <div class="form-check custom-checkbox">
      <input type="checkbox" id="long_sms" class="form-check-input">
      <label for="long_sms" class="form-check-label" style="width:100%">  bouton checkbox
                          
                        </label>
    </div>


  </div>

</body>
              
            
!

CSS

              
                .container{background-color: #eec0c6;
background-image: linear-gradient(315deg, #eec0c6 0%, #7ee8fa 74%);
}
/***CUSTOM RADIO BUTTON**/

.custom-radio > [type="radio"]:not(:checked),
.custom-radio > [type="radio"]:checked {
  position: absolute;
  left: -9999px;
}
.custom-radio > [type="radio"]:not(:checked) + label,
.custom-radio > [type="radio"]:checked + label {
  position: relative;
  padding-left: 22px;
  cursor: pointer;
}
.custom-radio > [type="radio"]:not(:checked) + label:before,
.custom-radio > [type="radio"]:checked + label:before {
  content: '';
  position: absolute;
  left:0; 
  top: 50%;
  margin-top:-9px;
  width: 17px; 
  height: 17px;
  border: 1px solid #ddd;
  background: #ffffff;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;

}
.custom-radio > [type="radio"]:not(:checked) + label:after,
.custom-radio > [type="radio"]:checked + label:after {
font: normal normal normal 12px/1 'Glyphicons Halflings';
    content:"\e013";
  position: absolute;
  top: 50%;
  margin-top:-7px;
  left: 2px;
  color: #94C947;
  xtransition: all .2s;
  
}

.custom-radio > [type="radio"]:not(:checked) + label:after {
  opacity: 0;
  transform: scale(0);

}
.custom-radio > [type="radio"]:checked + label:after {
  opacity: 1;
  transform: scale(1);
}


/**************La meme mise en forme pour des boutons checkbox******************/



.custom-checkbox > [type="checkbox"]:not(:checked),
.custom-checkbox > [type="checkbox"]:checked {
  position: absolute;
  left: -9999px;
}
.custom-checkbox > [type="checkbox"]:not(:checked) + label,
.custom-checkbox > [type="checkbox"]:checked + label {
  position: relative;
  padding-left: 22px;
  cursor: pointer;
}
.custom-checkbox > [type="checkbox"]:not(:checked) + label:before,
.custom-checkbox > [type="checkbox"]:checked + label:before {
  content: '';
  position: absolute;
  left:0; 
  top: 50%;
  margin-top:-9px;
  width: 17px; 
  height: 17px;
  border: 1px solid #ddd;
  background: #ffffff;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;

}
.custom-checkbox > [type="checkbox"]:not(:checked) + label:after,
.custom-checkbox > [type="checkbox"]:checked + label:after {
 font: normal normal normal 12px/1 'Glyphicons Halflings';
   content:"\e013";
  position: absolute;
  top: 50%;
  margin-top:-7px;
  left: 2px;
  color: #94C947;
  xtransition: all .2s;
  
}

.custom-checkbox > [type="checkbox"]:not(:checked) + label:after {
  opacity: 0;
  transform: scale(0);

}
.custom-checkbox > [type="checkbox"]:checked + label:after {
  opacity: 1;
  transform: scale(1);

  
}



/*************des boutons radios en forme de bouton*********************/
.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle) {
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}
.btn-group>.btn:not(.dropdown-toggle) {
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
}
.btn-group .btn.active:before {
  font: normal normal normal 12px/1 'Glyphicons Halflings';
    content:"\e013";
    display: inline-block;
}

.btn-group .btn.active {
    background-color: #ddd;
   
}

.btn {
    height: 40px;
    cursor: pointer;
    border: 0 none;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    padding: 12px 16px;
}
.btn-group label{
  background-color:white
}
              
            
!

JS

              
                
              
            
!
999px

Console