Pen Settings



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


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.


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.


                <div class="container">
  <h1 class="item">Penne with tomato sauce</h1>
  <div class="item content">
    <p>Setting <code>.sponsors</code>, a <code>ul</code>, to <code>display: contents</code>, causes weird issues in accessibility trees.</p>
    <h2>Firefox Nightly, 61</h2>
    <p>UL gets role <code>text leaf</code></p>
    <h2>Safari, with VoiceOver</h2>
    <p><code>ul</code> has role <code>list</code></p>
    <p>Accessibility tree shows “Accessibility node not exposed, element is not rendered” for UL.</p>
  <div class="item ingredients">
    <h2>You'll need:</h2>
      <li>Canned tomatoes</li>
  <ul class="sponsors">
    <li>Supermarket 1</li>
    <li>Supermarket 2</li>


                .sponsors {
  display: contents;  

/* other things */

* { margin: 0; padding: 0; }

body { font-family: Merriweather, sans-serif; padding: 2em; }

code { font-size: 1em; font-family: Monaco, monospace; border: 1px solid #ccc; background-color: #fff; }

p, ul { margin-bottom: 1em; }

h1 { font-weight: normal; border-top: 5px solid black; }

h2 { margin: 1em 0 .25em; font-size: 1em;} 
h2:first-child { margin-top: 0; }

.container  { 
  background-color: #EFEFFF;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 1em;
  .container .item:nth-child(1) {
    grid-column: 1 / 2;
  .container .item:nth-child(2) {
    grid-column: 2 / 4;

.item {
  padding: 1rem;

.content {
  background-color: white;
  margin: 1em 0;

.sponsors {
  .sponsors li {
    list-style: none;
  .sponsors li:nth-child(1) {
    grid-column: 2 / 3;
  .sponsors li:nth-child(2) {
    grid-column: 3 / 4;