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

              
                <base href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/">
<div class="extended-content">
  <article class="teaser">
    <img src="moustachio.jpg" alt>
    <h1>Gentleman of Four Outs</h1>
    <p>When a vulgar, blustering fellow asserts that he is a gentleman, the retort generally is, “Yes, a Gentleman Of Four Outs”—that is, without wit, without money, without credit, and without manners.
  </article>
  <article class="extended-featured">
    <img src="boomerang.jpg" alt>
    <h1>Pot-hunter</h1>
    <p>A man who gives his time up to rowing or punting, or any sort of match in order to win the “pewters” which are given as prizes. The term is now much used in aquatic and athletic circles; and is applied, in a derogatory sense, to men of good quality who enter themselves in small races they are almost sure to win, and thus deprive the juniors of small trophies which should be above the attention of champions, though valuable to beginners. Also an unwelcome guest, who manages to be just in time for dinner.
  </article>
  <article class="teaser">
    <img src="derby-beard.jpg" alt>
    <h1>Draw The Long Bow</h1>
    <p>To tell extravagant stories, to exaggerate overmuch; same as “throw the hatchet.” From the extremely wonderful stories which used to be told of the Norman archers, and more subsequently of Indians’ skill with the tomahawk.
  </article>
</div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}
.extended-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  font-family: Avenir, sans-serif;
}
.teaser {
  border: 1px solid #999;
  flex: 1;
  margin: 1rem;
  img { 
    width: 100%;
    height: auto;
  }
  h1 { 
    font-weight: 400;
  }
  *:not(img) {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}
.extended-featured {
  @extend .teaser;
  flex: 1.78;
  background: hsl(20,50%,95%);
}
@media all and (max-width: 750px) {
  .extended-content { 
    flex-direction: column;
    margin: 0 4rem;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console