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

+ add another resource


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


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.


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.


                <div class="tab-group">
  <div class="tab">
    <input id="tab-one" type="radio" name="tabs">
    <label for="tab-one">TAB ONE</label>
    <div class="tab-content"><p>Knock dish off table head butt cant eat out of my own dish stare at wall turn and meow stare at wall some more meow again continue staring or kick up litter yet lick plastic bags but hunt by meowing loudly at 5am next to human slave food dispenser. Meow stretch.</p>
  <div class="tab">
    <input id="tab-two" type="radio" name="tabs">
    <label for="tab-two">TAB TWO</label>
    <div class="tab-content"><p>Nap all day when in doubt, wash. Claws in your leg spit up on light gray carpet instead of adjacent linoleum, or stand in front of the computer screen.</p>
  <div class="tab">
    <input id="tab-three" type="radio" name="tabs">
    <label for="tab-three">TAB THREE</label>
    <div class="tab-content"><p>Run in circles hate dog hide from vacuum cleaner or stare at ceiling. Leave dead animals as gifts pooping rainbow while flying in a toasted bread costume in space but destroy couch, for jump around on couch, meow constantly until given food, for refuse to drink water except out of someone's glass yet throwup on your pillow climb a tree, wait for a fireman jump to fireman then scratch his face.</p>


                .tab-group {
  margin: 0 auto;
  padding-top: 40px;
  max-width: 45em;
  width: 100%;

.tab {
  position: relative;
  width: 100%;

.tab input {
  position: absolute;
  left: 30px;
  top: 0;
  z-index: -9999;

.tab label {
  background: #f8a8a3;
  color: #fff;
  display: block;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1.8em;
  padding-left: 1em;
  margin-bottom: .5em;
  transition: letter-spacing .9s;
  font-family: impact;
  border-radius: 17px;

.tab input:focus + label,
.tab label:hover {
  background: #e0e0e8;
  letter-spacing: 1px;

.tab-content {
  max-height: 0;
  overflow: hidden;
  transition: all .7s;

.tab-content p {
  font-family: helvetica;
  margin: 1em 0;
  padding-left: 2em;
  padding-right: 2em;

.tab input:checked ~ .tab-content {
  max-height: 9em;