Pen Settings



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


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.


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.


                <div class="wrap">
  <form class="message" action="">
    <h3 class="message__title">Responsive inputs</h3>
    <input class="message__text" type="text" placeholder="input 1"></input>
    <input class="message__text" type="text" placeholder="input 2"></input>
    <input class="message__text" type="text" placeholder="input 3"></input>
    <input class="message__text" type="text" placeholder="input 4"></input>
    <textarea class="message__textarea" placeholder="textarea" rows="3"></textarea>


  display: flex
  //flex-flow: row wrap
  flex-direction: row
  flex-wrap: wrap
  flex: 1 0 40%
  width: 43%  // fallback
  float: left // fallback
.message__textarea, .message__title
  flex: 1 1 100%

/* ----------- visual styles ------------- */
$input-color-top: #c2d8e2
$input-color-bottom: #fafcfd
$border-color: #156f9b
$form-bg-color-top: #1fb7e2
$form-bg-color-bottom: #1685cf
$form-border-color: #51d1ed

  max-width: 600px
  margin: 0 auto
  padding: 10px 10px 10px 0
  background: linear-gradient(to bottom, $form-bg-color-top 0%,$form-bg-color-bottom 100%)
  border: 1px solid $form-border-color
  color: #fff
  padding: 0 10px
  text-shadow: 0 -1px 2px rgba(#000,.3)
  margin-left: 10px
  padding: 8px 10px
  margin-bottom: 10px
  background: linear-gradient(to bottom, $input-color-top 0%,$input-color-bottom 50%)
  color: #fff
  border: 1px solid $border-color
  border-radius: 3px