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 Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

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.

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.

              <h1>Selection CSS Counter</h1>
<section class="characters">
  <h2>Select characters:</h2>
  <input id="b" type="checkbox"><label for="b">Relm</label>
  <input id="c" type="checkbox"><label for="c">Mog</label>
  <input id="e" type="checkbox"><label for="e">Celes</label>
  <input id="g" type="checkbox"><label for="g">Edgar</label>
  <input id="i" type="checkbox"><label for="i">Gau</label>
  <input id="k" type="checkbox"><label for="k">Terra</label>
  <input id="l" type="checkbox"><label for="l">Locke</label>
  <input id="o" type="checkbox"><label for="o">Cyan</label>
<section class="total">
  Total selected:
              @import url(https://fonts.googleapis.com/css?family=Droid+Sans:700);

/* counters */

body {
  counter-reset: characters;

input:checked {
  counter-increment: characters;

.total::after {
  content: counter(characters);

/* the rest is just to make things pretty */

body {
  margin: 32px;
  font: 700 32px/1 'Droid Sans', sans-serif;
  color: #fff;
  background-color: #3f584e;

h1 {
  margin: 0 0 32px;
  font-size: 48px;

h2 {
  margin: 0 0 8px 8px;
  font-size: inherit;

section {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 4px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, .1);

input {
  position: absolute;
  left: -9999px;

label {
  float: left;
  margin: 8px;
  padding: 16px;
  border-radius: 4px;
  border: solid 2px rgba(255, 255, 255, .4);
  background-color: rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: all .1s;

label::before {
  display: inline;

input:checked + label {
  border: solid 2px #fff;
  background-color: rgba(255, 255, 255, .4);
  box-shadow: 0 0 10px #fff;

.total {
  padding: 16px 24px;
Loading ..................