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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

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

<!-- vertical testimonial -->
<div class="p-24 bg-yellow-100 flex flex-col justify-center items-center">
   <h3 class="pb-10 font-bold text-4xl text-yellow-900 text-center">Simple Testimonial</h3>

   <div class="relative w-64">
      <img src="https://images.unsplash.com/photo-1537511446984-935f663eb1f4?" alt="Man on phone" class="absolute -top-7 left-24 rounded-full h-16 w-16  border-4 border-green-500 shadow-xl object-cover">
      <div class="p-10 bg-white rounded-lg border-t-8 border-green-500">
         <h3 class="font-bold text-gray-800 text-center uppercase text-sm tracking-widest">George Gray</h3>
         <p class="text-xs text-gray-500 text-center">Company Founder</p>
         <p class="pt-5 text-gray-800 text-center italic">The product was easy to use and very efficient.</p>
      </div>
   </div>

</div>

<!-- vertical testimonial -->
<div class="p-24 bg-yellow-200 flex flex-col justify-center items-center">
   <h3 class="pb-10 font-bold text-4xl text-yellow-900 text-center">Simple Testimonial</h3>

   <div class="flex flex-col max-w-sm">
      <img src="https://images.unsplash.com/photo-1537511446984-935f663eb1f4?" alt="Man on phone" class="h-40 overflow-hidden rounded-t-lg object-cover object-top">
      <div class="relative bg-blue-500 h-5">
         <span class="absolute -top-6 -left-8 rounded-full h-16 w-16 bg-blue-500 flex items-center justify-center text-blue-100 text-3xl">❝</span>
      </div>
      <div class="p-10 bg-white rounded-b-lg">
         <p class="pb-10 text-gray-800 italic">The product was easy to use and very efficient.</p>
         <h3 class="font-bold text-gray-800">George Gray</h3>
         <p class="text-xs text-gray-500">Company Founder</p>

      </div>
   </div>
</div>

<!-- horizontal testimonial -->
<div class="p-24 bg-yellow-100 flex flex-col justify-center items-center">
   <h3 class="pb-10 font-bold text-4xl text-yellow-900 text-center">Horizontal Testimonial</h3>

   <div class="bg-white grid grid-cols-3 rounded w-96">
      <div class="col-span-1 relative">
         <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?" alt="Girl in Red" class="absolute left-5 h-48 rounded -top-5 shadow-lg">
      </div>
      <div class="col-span-2 p-5 ml-5">
         <p class="pb-5 text-gray-800 italic">This was a really fun and easy to learn.</p>
         <h3 class="font-bold text-gray-800">Jules James</h3>
         <p class="text-xs text-gray-500">Client Services</p>
      </div>
   </div>
</div>

<!-- quote testimonial -->
<div class="p-24 bg-yellow-200 flex flex-col justify-center items-center">
   <h3 class="pb-10 font-bold text-4xl text-yellow-900 text-center">Quote Testimonial</h3>

   <div class="flex flex-col max-w-sm">
      <div class="bg-white p-8 rounded">
         <p class="text-gray-800 italic">This has been an amazing journey. I've done so much in so little time.</p>
      </div>
      <div class="relative left-5 -top-3">
         <div class="absolute h-6 w-6 transform rotate-45 bg-white"></div>
      </div>
      <div class="pl-3 pt-6 flex items-center">
         <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?" alt="Girl in Red" class="h-10 w-10 rounded-full bg-green-500 overflow-hidden object-cover shadow-lg">
         <div class="pl-3">
            <h3 class="font-bold text-sm text-gray-800">Jules James</h3>
            <p class="text-xs text-gray-500">Client Services</p>
         </div>
      </div>
   </div>

</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console