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. 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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <div class="content">
  <h2>Fancy ordered list</h2>
  <ol>
    <li>First, find a fluffle</li>
    <li>Next, fluff the fluffle
      <ol>
        <li>Scritch behind the ears
          <ol>
            <li>A little to the left</li>
            <li>Right there
              <ol>
                <li>Perfect</li>
              </ol>
            </li>
          </ol>
        </li>
        <li>Scritch under the chin</li>
        <li>Rub the belly</li>
      </ol>
    </li>
    <li>Repeat step 2, ad infinitum</li>
  </ol>

  <h2>Fancier list</h2>
    <ol class="fancier">
    <li>First, find a fluffle</li>
    <li>Next, fluff the fluffle
      <ol>
        <li>Scritch behind the ears
          <ol>
            <li>A little to the left</li>
            <li>Right there
              <ol>
                <li>Perfect</li>
              </ol>
            </li>
          </ol>
        </li>
        <li>Scritch under the chin</li>
        <li>Rub the belly</li>
      </ol>
    </li>
    <li>Repeat step 2, ad infinitum</li>
  </ol>
  <h2>Can’t forget unsorted lists</h2>
  <ul>
     <li>Treats
       <ul>
         <li>biscuits
          <ul>
            <li>small ones</li>
            <li>better (bigger) ones</li>
           </ul>
         </li>
         <li>bones</li>
         <li>asparagus</li>
       </ul>
    </li>
    <li>What else is there besides treats?</li>
  </ul>
</div>
            
          
!

CSS

            
              @import url("https://fonts.googleapis.com/css?family=Merriweather:400,400i,700");
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,400i,700");

/* Numbered list styles */
ol {
  list-style: none;
  /* name the counter */
  counter-reset: list-counter; 
}
ol li {
  font-family: Merriweather, serif;
  font-size: 1.25rem;
  line-height: 1.4;
  /* say which counter you want to increment */
  counter-increment: list-counter; 
}
ol li::before {
  color: #c05522;
  display: block;
  float: left;
  font-family: Montserrat, sans-serif;
  font-weight: bold;
  margin-left: -1.25em;
  /* increment the counter for this level */
  content: counter(list-counter) ". ";
}
ol li li::before {
  /* increment the counter at this level, but with alphabetic characters */
  content: counter(list-counter, lower-alpha) ". "; 
}
ol li li li::before {
  /* increment the counter at this level, but with Roman numerals */
  content: counter(list-counter, lower-roman) ". ";
}
ol li li li li::before {
  /* increment the counter at this level and lower, back to decimal numerals */
  content: counter(list-counter) ". ";
}

/* Fancier styles */
ol.fancier > li {
  margin-bottom: 1em;
}

ol.fancier > li::before {
  background-color: #c05522;
  border-radius: 50%;
  content: counter(list-counter);
  color: #ffffff;
  min-width: 1.75em;
  min-height: 1.5em;
  margin-left: -1.5em;
  margin-right: 0.35em;
  margin-top: -0.3em;
  padding: 0.3em 0.1em 0.1em;
  text-align: center;
}

/* Bullet lists */
ul {
  list-style: none;
  /* name the counter */
  counter-reset: list-counter; 
}
ul li {
  font-size: 1.25rem;
  line-height: 1.4;
  /* say which counter you want to increment */
  counter-increment: list-counter; 
}
ul li::before {
  color: #c05522;
  display: block;
  float: left;
  margin-left: -1em;
  /* set the character for this level */
  content: "●";
}

ul li li::before {
  /* set the character for this level */
  content: "▪";
}

ul li li li::before {
  /* set the character for this level */
  content: "◦";
}


/* Layout and stuff */

h2 {
  font-family: Merriweather, serif;
}
.content {
  margin: 4rem auto;
  max-width: 25rem;
}
            
          
!

JS

            
              
            
          
!
999px

Console