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

              
                <!-- title -->
<div class="p-24 bg-blue-900 flex flex-col justify-center items-center">
   <h2 class="pb-10 font-bold text-6xl text-blue-200 text-center">Cards with Tailwind CSS</h2>
</div>

<!-- simple card -->
<div class="p-24 bg-blue-500 flex flex-col justify-center items-center space-y-5">
   <h3 class="pb-10 font-bold text-4xl text-blue-900 text-center">Simple Card</h3>

   <div class="bg-gray-200 rounded-lg shadow-2xl flex flex-col justify-center">
      <header class="border-b border-gray-500 bg-gray-400 rounded-t-lg font-bold text-2xl p-5">Build A Card</header>
      <p class="p-5">This card has a header, body, and footer. This is where the content of the card goes. </p>
      <div class="text-center pb-5">
         <button class="rounded-lg px-8 py-4 bg-blue-500 text-blue-100 shadow">Get Started</button>
      </div>
      <footer class="border-t border-gray-500 rounded-b-lg bg-gray-300 text-sm text-gray-600 px-5 py-2 text-right">Updated 3 days ago</footer>
   </div>
</div>

<!-- simple card with image -->
<div class="p-24 bg-blue-700 flex flex-col justify-center items-center space-y-5">
   <h3 class="pb-10 font-bold text-4xl text-blue-200 text-center">Simple Card with Image</h3>

   <!-- vertical -->
   <p class="font-bold text-blue-100 text-left pt-10">Vertical</p>
   <div class="bg-gray-200 rounded-xl shadow-2xl flex flex-col justify-center">
      <img src="https://images.unsplash.com/photo-1610720657521-c38abf6dbb7d?" alt="boy with camera" class="rounded-t-xl h-60 object-cover">
      <h3 class="font-bold text-2xl px-5 pt-5">Build a Card</h3>
      <p class="p-5">This card has a header, body, and footer. This is where the content of the card goes. </p>
      <div class="text-center">
         <button class="rounded-lg px-4 py-2 bg-blue-500 text-blue-100 m-5 w-40 shadow">Get Started</button>
      </div>
      <footer class="border-t border-gray-500 rounded-b-lg bg-gray-300 text-sm text-gray-600 px-5 py-2 text-right">Updated 3 days ago</footer>
   </div>

   <!-- horizontal -->
   <p class="font-bold text-blue-100 text-left pt-10">Horizontal</p>
   <div class="bg-gray-200 rounded-xl shadow-2xl flex flex-col justify-center">
      <div class="flex">
         <img src="https://images.unsplash.com/photo-1610720657521-c38abf6dbb7d?" alt="boy with camera" class="rounded-tl-xl w-60 object-cover">
         <div>
            <h3 class="font-bold text-2xl px-5 pt-5">Build a Card</h3>
            <p class="p-5">This card has a header, body, and footer. This is where the content of the card goes. </p>
            <div class="text-center">
               <button class="rounded-lg px-4 py-2 bg-blue-500 text-blue-100 m-5 w-40 shadow">Get Started</button>
            </div>
         </div>
      </div>
      <footer class="border-t border-gray-500 rounded-b-lg bg-gray-300 text-sm text-gray-600 px-5 py-2 text-right flex-none">Updated 3 days ago</footer>
   </div>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console