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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <section>
  <div class="wrapper">
    <article id="article-1">
      <h1>A Big Piece of Garbage</h1>
      <p>Hey, guess what you're accessories to. Please, Don-Bot&hellip; look into your hard drive, and open your mercy file! Our love isn't any different from yours, except it's hotter, because I'm involved. They're like sex, except I'm having them!</p>
    </article>
    <article id="article-2">
      <h1>Leela's Homeworld</h1>
      <p>Okay, it's 500 dollars, you have no choice of carrier, the battery can't hold the charge and the reception isn't very&hellip; You guys realize you live in a sewer, right? Who am I making this out to? Hey! I'm a porno-dealing monster, what do I care what you think? Why yes! Thanks for noticing.</p>
    </article>
    <div>
      <button>Share this awesome content</button>
    </div>
  </div>
</section>
              
            
!

CSS

              
                section{
  article:last-of-type{margin-right:0;}
}


section{ text-align:center;
  .wrapper {display:inline-block;  text-align:center; margin:0 auto;}
  article{ max-width:300px; display:inline-block; text-align:left; vertical-align:top; margin-right:3em; padding:1em; background:lighten(#BADA55,20%);}
  button {display:inline-block; margin:2em 0; width:100%; padding:1em 0; border:0; background:#BADA55; color:darken(#BADA55, 40%);
  &:hover {background:lighten(#BADA55,15%);}
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console