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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

              
                <main>
  <div class="wrapper">
    <article class="flow">
      <h1>The <code>::marker</code> pseudo-element</h1>
      <figure class="callout">
        <p>
          Using <code>::marker</code> pseudo-element, you can style the markers of the
          <code>&lt;ul&gt;</code>, <code>&lt;ol&gt;</code> and
          <code>&lt;summary&gt;</code> elements.
        </p>
      </figure>
      <ul>
        <li>Donec ullamcorper nulla non metus auctor fringilla.</li>
        <li>Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</li>
        <li>Curabitur blandit tempus porttitor.</li>
      </ul>
      <ol>
        <li>Donec ullamcorper nulla non metus auctor fringilla.</li>
        <li>Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</li>
        <li>Curabitur blandit tempus porttitor.</li>
      </ol>
      <details>
        <summary>Open for some more content</summary>
        <p>
          Maecenas sed diam eget risus varius blandit sit amet non magna. Sed posuere
          consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem
          lacinia quam venenatis vestibulum. Maecenas sed diam eget risus varius
          blandit sit amet non magna. Morbi leo risus, porta ac consectetur ac,
          vestibulum at eros. Donec sed odio dui. Praesent commodo cursus magna, vel
          scelerisque nisl consectetur et. Cum sociis natoque penatibus et magnis dis
          parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque
          ornare sem lacinia quam venenatis vestibulum. Cras justo odio, dapibus ac
          facilisis in, egestas eget quam. Nullam id dolor id nibh ultricies vehicula
          ut id elit.
        </p>
      </details>
    </article>
  </div>
</main>
              
            
!

CSS

              
                ::marker {
  color: hotpink;
}

ul ::marker {
  font-size: 1.5em;
}

ol ::marker {
  font-size: 1.1em;
}

summary::marker {
  content: '\002B'' '; /* Plus symbol with space */
}

details[open] summary::marker {
  content: '\2212'' '; /* Minus symbol with space */
}

/* Presentational styles */
li + li {
  margin-top: 0.25em;
}

ol {
  padding: 0 0 0 1.1em;
}

              
            
!

JS

              
                
              
            
!
999px

Console