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

              
                <ul>
  <li>List item 1</li>
  <li>List item 2
  <ul>
    <li>List item 2.1</li>
    <li>List item 2.2</li>
    <li>List item 2.3</li>
  </ul>
  </li>
  <li>List item 3</li>
</ul>

<ol>
  <li>List item 1</li>
  <li>List item 2
  <ol>
    <li>List item 2.1</li>
    <li>List item 2.2</li>
    <li>List item 2.3</li>
  </ol></li>
  <li>List item 3</li>
</ol>

<ul>
  <li>List item with very long text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text 1
  <ul>
    <li>List item with very long text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text 2.1</li>
    <li>List item with very long text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text 2.2</li>
    <li>List item with very long text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text 2.3</li>
  </ul>
  </li>
  <li>List item with very long text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text 3</li>
</ul>

<ol>
  <li>List item with very long text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text 1
  <ol>
    <li>List item with very long text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text 2.1</li>
    <li>List item with very long text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text 2.2</li>
    <li>List item with very long text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text 2.3</li>
  </ol>
  </li>
  <li>List item with very long text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text 3</li>
</ol>

<ul class="todo">
  <li>Walk the dog</li>
  <li>Buy milk</il>
  <li class="good">Call mom</li>
  <li class="bad">Play Nintendo</li>
</ul>

<i>(Works in Chrome, Safari, Firefox, Opera and Explorer 8+)</i>
              
            
!

CSS

              
                /* Body style (not important for the example) */
body {
  background: #53B2A8;
  color: #fff;
  font-family: sans-serif;
  font-size: 20px;
}

/* Reset the style of list */
ul, 
ol {
  position: relative;
  list-style: none;
  padding: 0;
}

/* Add indentation of nested lists and remove bottom margin */
ul ul,
ol ol {
  margin: 0;
}

/* Add general display for bullets and numbers */
ul li,
ol li {
  padding-left: 1em;
  margin: .25em 0;
}

ul li:before,
ol li:before {
  position: absolute;
  left: 0;
  color: #333;
  font-family: georgia;
  font-weight: bold;
}

/* Style for bullet lists */
ul li:before {
	content: '\2022';
	color: #333;
}

/* Reset counter for each list */
ol {
	counter-reset: listitem;
}

ol li {
  padding-left: 1.3em;
}

/* Style for numbered lists. Increment counter for each list item */
ol li:before {
  counter-increment: listitem;
  content: counters(listitem, '.') '.';
}

ol ol li {
  padding-left: 2.3em;
}

/* TODO list */
ul.todo li {
  padding-left: 1.3em;
}

ul.todo li:before {
  content: '\2610';
  color: #333;
}

ul.todo li.good:before {
  content: '\2611';
  color: #156915;
}

ul.todo li.bad:before {
  content: '\2612';
  color: #971E1E;
}





              
            
!

JS

              
                
              
            
!
999px

Console