Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <article class="grid gap-6">
    <header class="wireframe bg-gray-200 h-[3rem]"></header>
      <main class="grid grid-cols-[1fr_minmax(0px,1280px)_1fr] gap-6 gap-y-8">
        <section class="grid grid-cols-12 col-start-2 gap-4 lg:gap-6 gap-y-8 content-start">
          <h1 class="col-span-12 text-4xl mt-12">Lorem ipsum dolor sit amet</h1>
          <img class="col-span-12 h-[13rem] lg:h-[31rem] w-full object-cover lg:col-span-5 lg:row-span-2" src="https://images.unsplash.com/photo-1522850959516-58f958dde2c1" alt="red and brown tower at daytime">

          <p class="text-xl col-span-12 lg:col-span-7">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nullam non nisi est sit amet facilisis magna. Ac orci phasellus egestas tellus. Fermentum dui faucibus in ornare quam viverra. Scelerisque eleifend donec pretium vulputate sapien nec sagittis aliquam malesuada. Eget egestas purus viverra accumsan in nisl nisi scelerisque eu.</p>
            <p class="text-xs xl:text-sm col-span-12 sm:col-span-7 lg:col-span-4">Integer feugiat scelerisque varius morbi enim nunc faucibus a. Porta nibh venenatis cras sed felis. Amet mattis vulputate enim nulla aliquet porttitor lacus. Convallis a cras semper auctor. Tellus mauris a diam maecenas sed enim ut. Etiam non quam lacus suspendisse. Aliquam sem et tortor consequat. Risus viverra adipiscing at in tellus integer. Tellus molestie nunc non blandit massa enim nec dui nunc. Ut diam quam nulla porttitor massa id neque aliquam. At tellus at urna condimentum mattis. Gravida arcu ac tortor dignissim convallis aenean et. Malesuada proin libero nunc consequat interdum varius sit. Sagittis orci a scelerisque purus semper eget duis at tellus. Sagittis id consectetur purus ut faucibus pulvinar elementum integer. Massa vitae tortor condimentum lacinia quis vel eros donec. Pellentesque dignissim enim sit amet venenatis urna cursus eget. A lacus vestibulum sed arcu. Adipiscing enim eu turpis egestas pretium. Sagittis purus sit amet volutpat consequat mauris nunc congue nisi.</p>
            <figure class="grid grid-cols-12 col-span-12 sm:grid-cols-5 sm:col-span-5 lg:col-span-3 gap-4 content-start">
              <img class="col-span-5 sm:col-span-2 h-[5rem] w-full object-cover" src="https://images.unsplash.com/photo-1508255139162-e1f7b7288ab7" alt="brown trees">
              <img class="col-span-7 sm:col-span-3 h-[5rem] w-full object-cover" src="https://images.unsplash.com/photo-1490806843957-31f4c9a91c65" alt="Mt. Fuji, Japan">
              <img class="col-span-12 sm:col-span-5 h-[12.9375rem] lg:h-[14.8125rem] w-full object-cover" src="https://images.unsplash.com/photo-1572929128258-41e525a382e5" alt="trees during autumn">
              </figure>
        </section>
      </main>
  <footer class="wireframe bg-gray-200 h-[3rem]"></footer>
</article>

              
            
!

CSS

              
                body {
  background: #fff;
}

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

JS

              
                
              
            
!
999px

Console