Pen Settings



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


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


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.


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.


                <div class="container">
  <div class="one">1. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quasi temporibus quos, quo labore animi earum repellendus cupiditate iusto placeat doloribus modi dicta culpa est? Ipsa laborum nam voluptate. Hic, blanditiis?</div>
  <div class="two">2. Lorem ipsum dolor sit amet consectetur adipisicing elit. Exercitationem, laboriosam similique minus tempora, facilis consectetur veniam incidunt asperiores dicta adipisci quo dolorum magni cumque pariatur voluptates debitis eveniet deserunt vitae.</div>
  <div class="three">3. adipisicing elit. Omnis incidunt, magni ratione neque, asperiores quod possimus molestias reprehenderit excepturi veniam ea eos est dolor qui quibusdam, adipisci voluptate vero esse?</div>
  <div class="four">4. Lorem ipsum dolor sit amet consectetur adipisicing elit. Eum praesentium tempore, accusantium suscipit consectetur hic iure libero voluptatibus reiciendis error excepturi earum sunt? Dolores laborum voluptate recusandae beatae unde facere.</div>


                .container {
  max-width: 1020px;
  margin: 4rem auto;
  display: flex;
  border: 1px solid red;
  align-items: center;

.container div {
  padding: 1rem;
  border-radius: 4px;
  margin: .5rem;

.one {
  height: 300px;
  background: rgba(purple, .2);
  order: 4;

.two {
  height: 200px;
  background: rgba(black, .2);
  order: 0;

.three {
  height: 260px;
  background: rgba(blue, .2);
  order: 2;

.four {
  height: 200px;
  background: rgba(orange, .2);
  order: 1;