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


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="container">
  <section class="default">

  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam dignissim nec nulla gravida lacinia. Donec <a href="">pharetra</a> mi vitae arcu tempus, vitae semper mi iaculis. Class aptent taciti sociosqu ad <a href=""></a> torquent per conubia nostra, per <a href=""></a> himenaeos. Sed id aliquam tellus. Quisque convallis in enim eu bibendum. Nullam quis sapien <a href="">interdum erat vestibulum bibendum finibus</a> ac quam. Mauris vestibulum urna metus, nec luctus massa volutpat non. Maecenas nibh purus, laoreet in risus vitae, scelerisque congue mauris. Pellentesque vulputate lobortis euismod.</p>


                .container {
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  font-family: sans-serif;

.default {
  --icon-width: 0.8em;
  content: "";
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImJsdWUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0iZmVhdGhlciBmZWF0aGVyLWV4dGVybmFsLWxpbmsiPjxwYXRoIGQ9Ik0xOCAxM3Y2YTIgMiAwIDAgMS0yIDJINWEyIDIgMCAwIDEtMi0yVjhhMiAyIDAgMCAxIDItMmg2Ij48L3BhdGg+PHBvbHlsaW5lIHBvaW50cz0iMTUgMyAyMSAzIDIxIDkiPjwvcG9seWxpbmU+PGxpbmUgeDE9IjEwIiB5MT0iMTQiIHgyPSIyMSIgeTI9IjMiPjwvbGluZT48L3N2Zz4=);
  display: inline-block;
  vertical-align: middle;
  width: var(--icon-width);
  height: var(--icon-width);
  margin-top: -0.2em;
  margin-left: 0.2em;
  background-size: cover;
} */