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

              
                <main class="page">
  <section class="container">
    <h2>Hear what our Customers have to say</h2>
    <article class="float-left">
      <img src="https://picsum.photos/100">
      <p>I've never had to cook or clean since I discovered Xyz. They perform all my tasks for me. I recommend them. </p>
      <h3>Dan Somore</h3>
    </article>
    <article class="float-left">
      <img src="https://picsum.photos/100">
      <p>I subscribed only to their daily meal plan and they never miss. Besides, their meals are healthy and delicious. They never miss. </p>
      <h3>Craig List</h3>
    </article>
    <article class="float-left">
      <img src="https://picsum.photos/100">
      <p>If you have to focus on any other task besides chore, go for Xyz. Daily meal plans, laundry, house cleaning, they are the best! </p>
      <h3>Samuel Jackker</h3>
    </article>
    <article class="float-left">
      <img src="https://picsum.photos/100">
      <p>Xyz is really a lifesaver! I was hung up on work that I barely had time to cook or do anything, and they came through for me, helping with all my chores.</p>
      <h3>Elon Gates</h3>
    </article>
  </section>
  <h2 class="overlap">Subscribe to any service of choice on Xyz to have your testimony too!</h2>
</main>
              
            
!

CSS

              
                .page {
  max-width: 100%;
}

.container {
  border: 4px solid black;
  padding: 20px;
}

.float-left {
  border: 2px solid blue;
  float: left;
  width: 45%;
  margin-block-end: 20px;
  margin-inline-end: 20px;
  padding: 5px;
}

img {
  float: left;
  margin-right: 10px;
}

.overlap {
  margin-left: 20px;
}
              
            
!

JS

              
                
              
            
!
999px

Console