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

              
                <!--
Based on:
https://www.vwthemes.net/vw-kids-store/
-->

<nav class="w-full bg-yellow-300">
  <ul class="flex justify-around">
    <li><a class="block px-3 py-4 hover:bg-blue-800 hover:text-white" href="#">Menu Item</a></li>
    <li><a class="block px-3 py-4 hover:bg-blue-800 hover:text-white" href="#">Menu Item</a></li>
    <li><a class="block px-3 py-4 hover:bg-blue-800 hover:text-white" href="#">Menu Item</a></li>
    <li><a class="block px-3 py-4 hover:bg-blue-800 hover:text-white" href="#">Menu Item</a></li>
  </ul>
</nav>

<div class="container my-6 mx-auto grid grid-cols-3 gap-6">
  <aside>
    <h2 class="text-2xl mb-4">Left Sidebar</h2>
    <section class="border-2 border-yellow-300 p-3 mb-10">
      <h3 class="text-xl mb-3 pb-2 border-b border-gray-300">Recent Posts</h3>
      <ul>
        <li><a class="block p-2 border-b border-gray-300" href="#">Post</a></li>
        <li><a class="block p-2 border-b border-gray-300" href="#">Post</a></li>
        <li><a class="block p-2" href="#">Post</a></li>
      </ul>
    </section>
    <section class="border-2 border-yellow-300 p-3 mb-10">
      <h3 class="text-xl mb-3 pb-2 border-b border-gray-300">Recent Comments</h3>
      <p>Content Here</p>
    </section>
  </aside>
  <main class="col-span-2">
    <h1 class="text-3xl">Main Title</h1>
    <p class="my-4">Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur possimus harum beatae iure voluptates cupiditate provident molestiae, atque nemo, nobis minima ea vel perspiciatis sunt quaerat quas quia eligendi. Omnis.</p>
    <p class="my-4">Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur possimus harum beatae iure voluptates cupiditate provident molestiae, atque nemo, nobis minima ea vel perspiciatis sunt quaerat quas quia eligendi. Omnis.</p>
    <p class="my-4">Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur possimus harum beatae iure voluptates cupiditate provident molestiae, atque nemo, nobis minima ea vel perspiciatis sunt quaerat quas quia eligendi. Omnis.</p>
  </main>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console