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

              
                <article class="grid gap-y-6">
    <div class="this-would-be-arbitrary bg-red-100 gap-x-6">
      <header class="grid grid-flow-col col-start-2">
       <img width="64" height="64" src="https://placekitten.com/150/150" alt="Kitteh industries Ltd." />
        <nav class="grid grid-flow-col justify-end gap-x-8 content-center">
          <a href="#">Link one</a>
          <a href="#">Link two</a>
          <a href="#">Link three</a>
        </nav>
      </header>
    </div>
      <main class="this-would-be-arbitrary bg-red-100 gap-x-6">
        <section class="grid grid-cols-12 col-start-2 gap-x-4 gap-y-6 content-start">
          <img class="col-span-12 sm:col-span-4 row-span-3" src="https://placekitten.com/600/600" alt="Cute kitteh" />

          <h1 class="col-span-12 sm:col-span-8 font-bold text-7xl">Cute kitteh</h1>
          <div class="col-span-12 sm:col-span-8 grid gap-y-6">
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt quidem tenetur reprehenderit laborum eligendi, debitis itaque maiores odit tempora, beatae dolorum! Ipsa repudiandae excepturi debitis incidunt ipsum soluta hic aut ad a eos.</p>
          <p>Nobis quas ratione, recusandae officia totam odit labore ipsa aperiam eveniet quis dignissimos itaque, repellendus iste eos ut temporibus voluptas nihil.</p>
          <p>Hic aperiam tempore ducimus nisi accusantium excepturi iste ex quam, quis repudiandae nesciunt repellat ea quidem temporibus laboriosam labore molestiae id maiores illum! Labore amet necessitatibus molestias officiis nostrum possimus aut quam error qui ipsa nulla, cum ad, facere exercitationem praesentium tempora, quos et ut? Atque.</p>
            </div>
        </section>
      </main>
</article>

              
            
!

CSS

              
                .this-would-be-arbitrary {
  display: grid;
  grid-template-columns: 1fr minmax(0px, 1280px) 1fr;
}
              
            
!

JS

              
                
              
            
!
999px

Console