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

              
                <div class="flexbox">
  <section class="list">
    <h1>Contents</h1>
    <ul>
      <li>Story</li>
      <li>About</li>
      <li>Contact</li>
    </ul>
  </section>
  <article class="main">
    <h1>The Little Prince</h1>
    <p>
    And he went back to meet the fox.
"Goodbye," he said.
"Goodbye," said the fox. "And now here is my secret, a very simple secret: It is only with the heart that one
can see rightly; what is essential is invisible to the eye."
"What is essential is invisible to the eye," the little prince repeated, so that he would be sure to remember.
"It is the time you have wasted for your rose that makes your rose so important."
"It is the time I have wasted for my rose--" said the little prince, so that he would be sure to remember.
"Men have forgotten this truth," said the fox. "But you must not forget it. You become responsible, forever,
for what you have tamed. You are responsible for your rose . . ."
"I am responsible for my rose," the little prince repeated, so that he would be sure to remember.
    </p>
  </article>
  <section class="side">
    <h1>About</h1>
    <p>
      The Little Prince (French: Le Petit Prince), first published in 1943, is a novella and the most famous work of the French aristocrat, writer, poet and pioneering aviator Antoine de Saint-Exupéry (1900–1944).
    </p>
  </section>
</div>
              
            
!

CSS

              
                .main {
  background: #fcc;
  margin: 10px 0;
}
.side {
  background: #fea;
}
.list {
  background: #afd;
}
.main,
.side,
.list {
  padding: 2%;
  border-radius: 10px
}

@media ( min-width : 600px ){
	.flexbox {
    display: -webkit-flex;
    display: flex;
	}
  .main {
    margin: 0 10px 0 0;
    -webkit-order: 1;
    order: 1;
  }
  .side {
    margin-right: 10px;
    -webkit-order: 2;
    order: 2;
  }
  .list {
    -webkit-order: 3;
    order: 3;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console