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

              
                <h1 class="text-3xl text-center mb-3">Welcome to my Blog</h1>

<article class="max-w-lg mx-auto">
  <p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Pariatur aut recusandae placeat, numquam ratione totam quisquam necessitatibus, ipsa nostrum dolorem veritatis, modi accusamus iste exercitationem atque molestias porro laudantium tempore?</p>

<figure class="bg-gray-200 p-3 text-center">
  <img src="https://images.unsplash.com/photo-1684873878361-52ea727733db?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80" alt="image to load in">
  <figcaption>A 3:2 image will load in here.<br>
  </figcaption>
</figure>

  <p> Ipsum ullam, dolore dolores facere commodi dolor tempora ipsa nobis obcaecati voluptas hic reprehenderit consequuntur autem quod voluptatem voluptate quidem sequi. Voluptatum consequuntur qui architecto, inventore minima vitae possimus quia.</p>

  <p>Optio laudantium eum deserunt dolore quidem, minus impedit magni provident facilis, eveniet quas numquam laborum doloremque, aperiam harum. Dolor architecto vitae temporibus deserunt, laudantium eius. Iusto debitis iste quidem nesciunt!</p>

  <p>Ad placeat consectetur veritatis sed. Iure enim excepturi dolore voluptatum error temporibus magni optio mollitia, dolorem necessitatibus? Odit corrupti non illum laboriosam fugit! Veniam consectetur optio illo iusto dicta repudiandae!</p>

  <p>Magni, pariatur dignissimos similique voluptatum earum quia dolorem eos, facilis voluptas, omnis ex debitis autem illum esse a delectus laboriosam velit nam ipsum est ut. Molestias itaque porro modi repudiandae.</p>

  <p>Perferendis, consequuntur totam! Aspernatur nam ullam ipsum dicta saepe omnis adipisci magni nesciunt, ab numquam placeat voluptates. Aliquam tempora deserunt dolores adipisci ratione aperiam, vero quod officiis rerum est a?</p>

  <p>Ipsum accusamus accusantium ex laborum. Quod delectus, aperiam eveniet quis aliquid molestiae quae quidem minus! Quaerat iusto velit doloremque vitae quo modi quam blanditiis. Blanditiis quibusdam velit nulla veniam perferendis.</p>

  <p>Dolorum, minima perspiciatis autem qui unde repellendus laboriosam. Adipisci ducimus nisi tenetur, atque voluptates magnam obcaecati dolor maxime blanditiis expedita fuga tempore enim vitae minus excepturi quos, dolorem quis esse?</p>
</article>
              
            
!

CSS

              
                body {
  padding: 1rem;
  line-height: 2;
}

img {
  width: 100%;
  aspect-ratio: 3 / 2 ;
}
              
            
!

JS

              
                
              
            
!
999px

Console