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.

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 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="container">
  <div class="note">
    This is a note. Using <code>::before</code>, the red "Note: " is added at the beginning, before the note text.
  </div>
  <hr>
  <p>
    The list items in the following list have an image added to them using <code>::before</code>. Note that this is just a proof of concept—styling list markers is usually done using the CSS  <code>list-style</code> property.
  </p>
  <ul>
    <li>First List Item</li>
    <li>Second List Item</li>
    <li>Third List Item</li>
  </ul>
  <hr>
  <p>
    The following button has an icon inserted before its text content using <code>::before</code>.
  </p>
  <div>
    <button><span>Sign Up!</span></button>
  </div>
</div>
              
            
!

CSS

              
                body {
    color: #555;
    font-size: 1.1em;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

hr {
    margin: 50px 0;
}

.container {
    margin: 40px auto;
    max-width: 700px;
    padding: 50px;
}

.note {
    color: grey;
    font-style: italic;
}

.note:before {
    content: "Note: ";
    color: red;
}

ul {
    list-style: none;
}

li:before {
    content: url(http://tympanus.net/codrops-playground/assets/images/cssref/pseudo/before/check-icon.png);
}

button {
    padding: 1em;
}

button span {
    font-size: 1.5em;
    padding-left: .5em;
}

button:before {
    content: url(http://tympanus.net/codrops-playground/assets/images/cssref/pseudo/before/right-hand.png);
}
              
            
!

JS

              
                
              
            
!
999px

Console