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

              
                <div class="legend">
  <ol>
      <li>Cham&aelig;rops <i>humilis</i>, <i>Dwarf Palm</i>. South Europe.
          <ol>
              <li><i>Stamen Flower</i>.</li>
              <li><i>Stamens</i>.</li>
              <li><i>Fertile Flower</i>.</li>
              <li><i>Ovaries</i>.</li>
              <li><i>Fruit</i>.</li>
              <li><i>Section</i>.</li>
          </ol>
      </li>
      <li>Ph&oelig;nix <i>dactylifera</i>, <i>Date Palm</i>. Levant.
          <ol>
              <li><i>Seed</i>.</li>
              <li><i>Sprouting</i>.</li>
          </ol>
      </li>
      <li>Calamus <i>palustris</i>, <i>Rattan Palm</i>. E. Indies.</li>
      <li>Sagus <i>Rumphii</i>, <i>Sago Palm</i>. E. Indies.
          <ol>
              <li><i>Flower, opened</i>.</li>
          </ol>
      </li>
      <li>Cocos <i>nucifera</i>, <i>Cocoa-nut Palm</i>. I. Isles.</li>
      <li>Phytelephas <i>macrocarpa</i>. <i>Ivory-nut Palm</i>. Peru.</li>
      <li><i>Fruit of</i> Elais.
          <ol>
              <li><i>Seed</i>.</li>
              <li><i>Fruit without the bulb</i>.</li>
          </ol>
      </li>
      <li class="empty">
          <ol>
              <li class="outdent"><i>Section of Palm fruit</i>.</li>
          </ol>
      </li>
  </ol>
</div>
              
            
!

CSS

              
                @import url(//fonts.googleapis.com/css?family=Old+Standard+TT:400,400i,700);
body {
  font-family: "Old Standard TT", "Times New Roman", Times, serif;
  font-size: 20px;
  line-height: 1.54
}

.legend li::before {
    content: counter(number) ". ";
    counter-increment: number;
    margin-left: -1.2em;
    text-align: right;
    white-space: 1.2em;
}

.legend li.empty::before { content: ""; }
.legend li.empty ol { margin-top: -1.54em; }
.legend li.outdent { margin-left: -2.3em; }

.legend ol {
  counter-reset: number;
  list-style: none;
  margin-left: 1.2em;
  padding: 0;
}

.legend ol ol { counter-reset: letter; margin: 0 0 0 1.1em; }

.legend ol ol li:before {
    content: counter(number) counter(letter, lower-alpha) ". ";
    counter-increment: letter;
    font-variant: small-caps;
    display: inline-block;
    margin: 0 0.3em 0 -1em;
    text-align: right;
    width: 2.5em;
}

.legend ol.outdent { margin-left: -0.4em; }
              
            
!

JS

              
                
              
            
!
999px

Console