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

              
                <h2>Beastie Boys Anthology</h2>
<p>The Sounds of Science is the first anthology album by American rap rock group Beastie Boys composed of greatest hits, B-sides, and previously unreleased tracks.</p>
<div x-data="{ open: false }" x-cloak>
  <button @click="open = ! open" :aria-expanded="open" aria-controls="tracklist">Tracklist</button>
  <ol x-show="open" id="tracklist">
    <li>Beastie Boys</li>
    <li>Slow And Low</li>
    <li>Shake Your Rump</li>
    <li>Gratitude</li>
    <li>Skills To Pay The Bills</li>
    <li>Root Down</li>
    <li>Believe Me</li>
    <li>Sure Shot</li>
    <li>Body Movin' (Fatboy Slim Remix)</li>
    <li>Boomin' Granny</li>
    <li>Fight For Your Right</li>
    <li>Country Mike's Theme</li>
    <li>Pass The Mic</li>
    <li>Something's Got To Give</li>
    <li>Bodhisattva Vow</li>
    <li>Sabrosa</li>
    <li>Song For The Man</li>
    <li>Soba Violence</li>
    <li>Alive</li>
    <li>Jimmy James (Original Version)</li>
    <li>Three MC's And One DJ (Live Video Version)</li>
  </ol>
</div>
              
            
!

CSS

              
                .js [x-cloak] { display: none; }
.no-js button { display: none; }

body {
  overflow-y: scroll;
}
              
            
!

JS

              
                
              
            
!
999px

Console