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

              
                <!DOCTYPE html>
<html>
   <head>
      <title>Testimonial</title>
      <style>
         .testimonial-container {
         display: flex;
         position: absolute;
         left: 50%;
         top: 50%;
         transform: translate(-50%, -50%);
         }
         .testimonial-box {
         width: 300px;
         padding: 20px;
         margin: 20px;
         background-color: #f2f2f2;
         border-radius: 10px;
         box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
         }
         .testimonial-box img {
         width: 80px;
         height: 80px;
         border-radius: 50%;
         margin-bottom: 10px;
         }
         .testimonial-box h3 {
         font-size: 18px;
         margin-bottom: 10px;
         }
         .testimonial-box p {
         font-size: 14px;
         color: #666;
         }
      </style>
   </head>
   <body>
      <div class="testimonial-container">
         <div class="testimonial-box">
            <img src="https://webbiz.id/wp-content/uploads/2023/12/jasa-pembuatan-website-makassar.jpg" alt="Avatar 1">
            <h3>John Doe</h3>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae justo ac nunc lacinia lacinia. Nulla facilisi.</p>
         </div>
         <div class="testimonial-box">
            <img src="https://webbiz.id/wp-content/uploads/2023/12/jasa-pembuatan-website-makassar.jpg" alt="Avatar 2">
            <h3>Jane Smith</h3>
            <p>Ut euismod, nisl id tincidunt lacinia, nunc nunc tincidunt nunc, id lacinia nunc nunc id nunc.</p>
         </div>
         <div class="testimonial-box">
            <img src="https://webbiz.id/wp-content/uploads/2023/12/jasa-pembuatan-website-makassar.jpg" alt="Avatar 3">
            <h3>David Johnson</h3>
            <p>Aliquam erat volutpat. Sed euismod, nisl id tincidunt lacinia, nunc nunc tincidunt nunc, id lacinia nunc nunc id nunc.</p>
         </div>
      </div>
   </body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console