Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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.

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

              
                <div class="container">
  <p>Check boxes and their labels laid out in multiple columns.</p>
  <p><b>Note:</b> Internet Explorer 9, and earlier versions, does not support the <code>column-count:</code> property.</p>

  <fieldset>
    <legend>Select all the birds you've seen</legend>
    <div class="columns"><label class="cbox" for="rwblackbird"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="rwblackbird">Blackbird, Red-winged</label>
      <label class="cbox" for="ebluebird"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="ebluebird">Bluebird, Eastern</label>
      <label class="cbox" for="mbluebird"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="mbluebird">Bluebird, Mountain</label>
      <label class="cbox" for="wbluebird"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="wbluebird">Bluebird, Western</label>
      <label class="cbox" for="bluejay"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="bluejay">Blue Jay</label>
      <label class="cbox" for="sbluejay"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="sbluejay">Blue Jay (Southeastern)</label>
      <label class="cbox" for="acondor"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="acondor">Condor, Andean</label>
      <label class="cbox" for="ccondor"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="ccondor">Condor, California</label>
      <label class="cbox" for="cardinal"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="cardinal">Cardinal, Northern</label>
      <label class="cbox" for="cockatiel"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="cockatiel">Cockatiel</label>
      <label class="cbox" for="sacockatoo"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="sacockatoo">Cockatoo, Salmon Crested</label>
      <label class="cbox" for="sucockatoo"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="sucockatoo">Cockatoo, Sulpher Crested</label>
      <label class="cbox" for="wcockatoo"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="wcockatoo">Cockatoo, White</label>
      <label class="cbox" for="yecockatoo"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="yecockatoo">Cockatoo, Yellow Crested</label>
      <label class="cbox" for="acrow"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="acrow">Crow, American</label>
      <label class="cbox" for="fcrow"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="fcrow">Crow, Fish</label>
      <label class="cbox" for="beagle"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="beagle">Eagle, Bald</label>
      <label class="cbox" for="geagle"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="geagle">Eagle, Golden</label>
      <label class="cbox" for="emu"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="emu">Emu</label>
      <label class="cbox" for="flamingo"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="flamingo">Flamingo</label>
      <label class="cbox" for="bhgull"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="bhgull">Gull, Black-headed</label>
      <label class="cbox" for="ggull"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="ggull">Gull, Glaucous</label>
      <label class="cbox" for="gwgull"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="gwgull">Gull, Glaucous-winged</label>
      <label class="cbox" for="gbbgull"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="gbbgull">Gull, Great Black-backed</label>
      <label class="cbox" for="hgull"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="hgull">Gull, Herring</label>
      <label class="cbox" for="lgull"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="lgull">Gull, Laughing</label>
      <label class="cbox" for="lbbgull"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="lbbgull">Gull, Lesser Black-backed</label>
      <label class="cbox" for="rbgull"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="rbgull">Gull, Ring-billed</label>
      <label class="cbox" for="bchumming"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="bchumming">Hummingbird, Black-chinned</label>
      <label class="cbox" for="rthumming"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="rthumming">Hummingbird, Ruby-throated</label>
      <label class="cbox" for="kooka"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="kooka">Kookaburra</label>
      <label class="cbox" for="oriole"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="oriole">Oriole, Baltimore</label>
      <label class="cbox" for="osprey"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="osprey">Osprey</label>
      <label class="cbox" for="ostrich"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="ostrich">Ostrich</label>
      <label class="cbox" for="barn"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="barn">Owl, Barn</label>
      <label class="cbox" for="barred"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="barred">Owl, Barred</label>
      <label class="cbox" for="ghorn"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="ghorn">Owl, Great Horned</label>
      <label class="cbox" for="screech"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="screech">Owl, Screech</label>
      <label class="cbox" for="parrot"><input type="checkbox" class="larger" class="larger" name="birdSeen" value="genus" id="parrot">Parrot</label>
      <label class="cbox" for="awpelican"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="awpelican">Pelican, American White</label>
      <label class="cbox" for="bpelican"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="bpelican">Pelican, Brown</label>
      <label class="cbox" for="epelican"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="epelican">Penguin, Emperor</label>
      <label class="cbox" for="lpenguin"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="lpenguin">Penguin, Little</label>
      <label class="cbox" for="mpenguin"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="mpenguin">Penguin, Macaroni</label>
      <label class="cbox" for="craven"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="craven">Raven, Common</label>
      <label class="cbox" for="Robin"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="Robin">Robin</label>
      <label class="cbox" for="bswan"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="bswan">Swan, Black</label>
      <label class="cbox" for="bnswan"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="bnswan">Swan, Black-necked</label>
      <label class="cbox" for="tswan"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="tswan">Swan, Trumpter</label>
      <label class="cbox" for="toucan"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="toucan">Toucan</label>
      <label class="cbox" for="ewturkey"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="ewturkey">Turkey, Eastern Wild</label>
      <label class="cbox" for="gwturkey"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="gwturkey">Turkey, Gould's Wild</label>
      <label class="cbox" for="mwturkey"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="mwturkey">Turkey, Merriam's Wild</label>
      <label class="cbox" for="owturkey"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="owturkey">Turkey, Osceola Wild</label>
      <label class="cbox" for="rgwturkey"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="rgwturkey">Turkey, Rio Grande Wild</label>
      <label class="cbox" for="gwood"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="gwood">Woodpecker, Gila</label>
      <label class="cbox" for="pwood"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="pwood">Woodpecker, Pileated</label>
      <label class="cbox" for="rbwood"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="rbwood">Woodpecker, Red bellied</label>
      <label class="cbox" for="rhwood"><input type="checkbox" class="larger" name="birdSeen" value="genus" id="rhwood">Woodpecker, Red-headed</label>
    </div>
  </fieldset>

</div>
              
            
!

CSS

              
                body {
  border: 0px;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: sans-serif;
  background-color: lightgreen;
}

.container {
  padding: 1em;
  margin: 0px auto;
  max-width: 100%;
}

code {
  font-size: 1.3em;
}

fieldset {
  border-radius: 6px;
  font-size: 1.0em;
  line-height: 1em;
}

legend {
  font-size: 1.1em;
}

.columns {
  column-count: 3;
  white-space: pre-line;
}

.cbox:hover {
  cursor: pointer;
}

.cbox {
  line-height: 1.5em;
}
input[type=checkbox] {
  vertical-align: middle;
  position: relative;
}

.larger {
  height: 1.2em;
  width: 1.2em;
}

@media screen and (max-width:900px) {
  .columns {
  column-count: 2;
  white-space: pre-line;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console