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

              
                <body>
  <main class="flex flex-col items-center container mx-auto border-solid border-2 border-gray-200 rounded-lg m-9 p-4 bg-white bg-opacity-80">
    <h2 class="text-4xl font-bold text-center text-blue-500 p-4">Our Best Sellers</h2>
    <section class="flex flex-col items-center sm:flex-row">
      <article class="text-gray-700 text-center px-4 py-2 m-2">
        <div class="max-w-sm rounded overflow-hidden shadow-lg bg-white bg-opacity-90">
          <figure class="max-w-sm rounded overflow-hidden shadow-md bg-white bg-opacity-90">
            <img class="w-full" src="https://assets.codepen.io/126464/honeysuckle-01.jpg" alt="Lonicera japonica" />
            <figcaption class="italic">Lonicera japonica</figcaption>
          </figure>
          <dl class="px-6 py-4">
            <dt class="font-bold text-xl mb-2"><a href="#">Honeysuckle</a></dt>
            <dd class="text-gray-700 text-base">
              Lorem ipsum dolor sit amet, consectetur adipisicing elit.
              Voluptatibus quia, nulla! Maiores et perferendis eaque,
              exercitationem praesentium nihil.
            </dd>
          </dl>
          <ul class="px-6 py-4">
            <li class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#climber</li>
            <li class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#japanese</li>
            <li class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700">#fragrant</li>
          </ul>
        </div>
      </article>
      <article class="text-gray-700 text-center  px-4 py-2 m-2">
        <div class="max-w-sm rounded overflow-hidden shadow-lg bg-white bg-opacity-90">
          <figure class="max-w-sm rounded overflow-hidden shadow-md bg-white bg-opacity-90">
            <img class="w-full" src="https://assets.codepen.io/126464/jasmine-01.jpg" alt="Jasminum grandiflorum" />
            <figcaption class="italic">Jasminum grandiflorum</figcaption>
          </figure>
          <dl class="px-6 py-4">
            <dt class="font-bold text-xl mb-2"><a href="#">Jasmine</a></dt>
            <dd class="text-gray-700 text-base">
              Lorem ipsum dolor sit amet, consectetur adipisicing elit.
              Voluptatibus quia, nulla! Maiores et perferendis eaque,
              exercitationem praesentium nihil.
            </dd>
          </dl>
          <ul class="px-6 py-4">
            <li class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#evergreen</li>
            <li class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#white</li>
            <li class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700">#fragrant</li>
          </ul>
        </div>
      </article>
      <article class="text-gray-700 text-center  px-4 py-2 m-2">
        <div class="max-w-sm rounded overflow-hidden shadow-lg bg-white bg-opacity-90">
          <figure class="max-w-sm rounded overflow-hidden shadow-md bg-white bg-opacity-90">
            <img class="w-full" src="https://assets.codepen.io/126464/rose-01.jpg" alt="Rosa 'Alba Semiplena'" />
            <figcaption class="italic">Rosa 'Alba Semiplena'</figcaption>
          </figure>
          <dl class="px-6 py-4">
            <dt class="font-bold text-xl mb-2"><a href="#">Rose</a></dt>
            <dd class="text-gray-700 text-base">
              Lorem ipsum dolor sit amet, consectetur adipisicing elit.
              Voluptatibus quia, nulla! Maiores et perferendis eaque,
              exercitationem praesentium nihil.
            </dd>
          </dl>
          <ul class="px-6 py-4">
            <li class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#perenial</li>
            <li class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#white</li>
            <li class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700">#fragrant</li>
          </ul>
        </div>
      </article>
    </section>
  </main>
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console