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

              
                <div class="container mx-auto px-20">

<div style='background-color:rgb(245 245 245)'>
<div class="space-y-4 lg:grid lg:grid-cols-3 lg:items-start lg:gap-6 lg:space-y-0" style="cursor: auto;">
    
  <a href="https://stackdiary.com/" class="group">
        
    <div class="aspect-w-3 aspect-h-2">
            
      <img class="object-cover shadow-lg rounded-lg group-hover:opacity-75" src="https://stackdiary.com/140x100.png" alt="Featured Photo" style="cursor: auto;">
        
    </div>
    
  </a>
    
  <div class="sm:col-span-2" style="cursor: auto;">
        
    <div class="flex items-center space-x-3" style="cursor: auto;">
                            
      <div class="flex items-center space-x-2" style="cursor: auto;">
                                            
        <span class="inline-flex items-center leading-none px-2.5 py-1.5 text-sm font-medium text-skin-inverted rounded-full border border-skin-input" style="cursor: auto;">
    
          <svg class="mr-1.5 h-2 w-2 brand-react" fill="currentColor" viewBox="0 0 8 8">
        
            <circle cx="4" cy="4" r="3"></circle>
    
          </svg>
Tag #1
        </span>
                                            
        <span class="inline-flex items-center leading-none px-2.5 py-1.5 text-sm font-medium text-skin-inverted rounded-full border border-skin-input" style="cursor: auto;">
    
          <svg class="mr-1.5 h-2 w-2 brand-packages" fill="currentColor" viewBox="0 0 8 8">
        
            <circle cx="4" cy="4" r="3"></circle>
    
          </svg>
Tag #2
        </span>
                                            
        <span class="inline-flex items-center leading-none px-2.5 py-1.5 text-sm font-medium text-skin-inverted rounded-full border border-skin-input" style="cursor: auto;">
    
          <svg class="mr-1.5 h-2 w-2 brand-tutoriel" fill="currentColor" viewBox="0 0 8 8">
        
            <circle cx="4" cy="4" r="3"></circle>
    
          </svg>
    Tag #3

        </span>
                                    
      </div>
            
                    
    </div>
        
    <div class="mt-2" style="cursor: auto;">
            
      <a href="https://laravel.cm/articles/traquer-un-champ-validation-conditionelle-react-hook-form-5" class="group">
                
        <h4 class="text-lg leading-6 font-semibold font-sans text-skin-inverted group-hover:text-skin-primary" style="cursor: auto;">A Tailwind CSS Card for Displaying Blog Posts</h4>
            
      </a>
            
      <p class="mt-1 text-sm font-normal text-skin-base leading-5" style="cursor: auto;">
Metus potenti velit sollicitudin porttitor magnis elit lacinia tempor varius, ut cras orci vitae parturient id nisi vulputate consectetur, primis venenatis cursus tristique malesuada viverra congue risus. 
            </p>
            
      <div class="mt-3 flex items-center font-sans" style="cursor: auto;">
                
        <div class="shrink-0">
                    
          <a href="https://stackdiary.com/">
                        
            <span class="sr-only">John Doe</span>
                        
            <img class="h-10 w-10 rounded-full" src="https://stackdiary.com/140x100.png" alt="Ekim Kael" style="cursor: auto;">
                    
          </a>
                
        </div>
                
        <div class="ml-3">
                    
          <p class="text-sm font-medium text-skin-inverted">
                        
            <a href="https://stackdiary.com" class="hover:underline" style="cursor: auto;">
                            John Doe
                        </a>
                    
          </p>
                    
          <div class="flex space-x-1 text-sm text-skin-muted" style="cursor: auto;">
                        
            <time datetime="2022-02-01" style="cursor: auto;">1 Feb, 2022</time>
                        
            <span aria-hidden="true">·</span>
                        
            <span style="cursor: auto;">3 min read time</span>
                    
          </div>
                
        </div>
            
      </div>
        
    </div>
    
  </div>

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

CSS

              
                .container {
  margin-top:5rem;
  max-width:50%;
}

.space-y-4 {
    padding:25px;
}

/* for CodePen viewing */
              
            
!

JS

              
                
              
            
!
999px

Console