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

              
                <div class="employee-bios">
<article class="employee-bio">
  <h1>Gina Norris</h1>
  <img class="photo" src="https://i.pravatar.cc/150?img=16" alt="Gina Norris">
  <p>Gina is a former accountant-turned-professional ultramarathoner who loves getting outdoors. After 8 years working long hours, she realized how much she missed training for and running marathons as she had in college. She dabbled in a few local 10K marathons at first, and then got hooked.</p>
<p>Gina brings to us her expertise in running and fitness gear. If you see her in the store, ask her about his other passion - baking!</p>
</article>
<article class="employee-bio">
  <h1>Ted Jackson</h1>
  <img class="photo" src="https://i.pravatar.cc/150?img=52" alt="Ted Jackson">
  <p>Ted is a former accountant-turned-professional ultramarathoner who loves getting outdoors. After 8 years working long hours, he realized how much he missed training for and running marathons as he had in college. He dabbled in a few local 10K marathons at first, and then got hooked.</p>
<p>Ted brings to us his expertise in running and fitness gear. If you see her in the store, ask her about her other passion - baking!</p>
</article>
</div>
              
            
!

CSS

              
                :root {
  --white: #fff;
  --green: rgb(44,50,14);
  --font-family: 'Catamaran', Arial, sans-serif;
}

html {
  font-size: 100%; /* 16px */
}

@media (min-width: 700px) {
  html {
    font-size: 125%; /* 20px */
  }
}

body {
  font-family: var(--font-family);
}


p {
  line-height: 1.5;
}

.employee-bios {
  max-width: 1200px;
  margin: 0 auto;
}

.employee-bio {
  max-width: 80%;
  margin: 0 auto 80px;
}

@media (min-width: 700px) {
  .employee-bio {
    max-width: 60%;
  }
}

@media (min-width: 1000px) {
  .employee-bio {
    max-width: 50%;
  }
}

.photo {
  width: 150px;
  border-radius: 50%;
  shape-outside: circle(); 
  float: left;
  margin-right: 25px;
}

              
            
!

JS

              
                
              
            
!
999px

Console