cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

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.

              <form class="form">
  <div class="form__element">
    <input type="checkbox" class="form__checkbox" id="checkbox1"  />
    <label for="checkbox1" class="form__checkbox-label">Checkbox 1</label> 

  <div class="form__element">
    <input type="checkbox" class="form__checkbox" id="checkbox2"  />
    <label for="checkbox2" class="form__checkbox-label">Checkbox 2</label>
  <div class="form__element">
    <input type="checkbox" class="form__checkbox" id="checkbox3"  />
    <label for="checkbox3" class="form__checkbox-label">Checkbox 3</label>
  <div class="form__element">
    <input type="checkbox" class="form__checkbox" id="checkbox4"  />
    <label for="checkbox4" class="form__checkbox-label">Checkbox 4</label>

              $color-page: #634fa0;
$color-input-focus: #433384;
$color-input-checked: #f3b53d;

body {
  background-color: $color-page;

.form {
  display: flex;
  max-width: 1000px;
  margin: 20px auto;
  &__element {
    position: relative;
    margin: 10px;
  &__checkbox {

    // Position the real checkbox behind our proxy
    position: absolute;
    top: 30px;
    left: 30px;
    border: 0;
    &-label:before {
      transition: 0.5s;

    // If the checkbox is checked, update our proxy
    &:checked + &-label:before {
      border-color: $color-input-checked;
      color: $color-input-checked;
      background-color: lighten($color-page, 20%);

  // Label test
  &__checkbox-label {
    display: block;
    position: relative;
    padding: 10px 20px 10px 86px;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: white;
    line-height: 54px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid darken($color-page, 5%);
    border-radius: 10px;
    white-space: nowrap;
    cursor: pointer;

    // Proxy checkbox
    &:before {
      position: absolute;
      display: block;
      top: 10px;
      left: 10px;
      width: 50px;
      height: 50px;
      content: "";
      font-size: 24px;
      cursor: pointer;
      border-radius: 6px;
      border: 2px solid $color-input-focus;
      text-align: center;
      background-color: darken($color-page, 20%);


Loading ..................