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

              
                  <div class="wrapper" style="background: white;">
    

<div class="bx--form-item">
  <input id="text-input-3" type="text" class="bx--text-input" placeholder="Optional placeholder text">
  <label for="text-input-3" class="bx--label">Text Input label</label>
</div>
<div class="bx--form-item">
  <textarea id="text-area-2" class="bx--text-area" rows="4" cols="50" placeholder="Placeholder text."></textarea>
  <label for="text-area-2" class="bx--label">Text Area label</label>
</div>
<div class="bx--form-item">
  <div class="bx--select">
    <select id="select-id" class="bx--select-input">
      <option class="bx--select-option" disabled selected hidden>Choose an option</option>
      <option class="bx--select-option" value="solong">A much longer option that is worth having around to check how text flows</option>
      <optgroup class="bx--select-optgroup" label="Category 1">
        <option class="bx--select-option" value="option1">Option 1</option>
        <option class="bx--select-option" value="option2">Option 2</option>
      </optgroup>
      <optgroup class="bx--select-optgroup" label="Category 2">
        <option class="bx--select-option" value="option1">Option 1</option>
        <option class="bx--select-option" value="option2">Option 2</option>
      </optgroup>
    </select>
    <svg class="bx--select__arrow" width="10" height="5" viewBox="0 0 10 5">
      <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" />
    </svg>
    <label for="select-id" class="bx--label">Select label</label>
  </div>
</div>
<div class="bx--form-item">
  <button class="bx--btn bx--btn--primary" type="button">Submit</button>
</div>
  </div>
  <div class="wrapper">
    

<div class="bx--form-item">
  <input id="text-input-3" type="text" class="bx--text-input bx--text-input--light" placeholder="Optional placeholder text">
  <label for="text-input-3" class="bx--label">Text Input label</label>
</div>
<div class="bx--form-item">
  <textarea id="text-area-2" class="bx--text-area bx--text-area--light" rows="4" cols="50" placeholder="Placeholder text."></textarea>
  <label for="text-area-2" class="bx--label">Text Area label</label>
</div>
<div class="bx--form-item">
  <div class="bx--select bx--select--light">
    <select id="select-id" class="bx--select-input">
      <option class="bx--select-option" disabled selected hidden>Choose an option</option>
      <option class="bx--select-option" value="solong">A much longer option that is worth having around to check how text flows</option>
      <optgroup class="bx--select-optgroup" label="Category 1">
        <option class="bx--select-option" value="option1">Option 1</option>
        <option class="bx--select-option" value="option2">Option 2</option>
      </optgroup>
      <optgroup class="bx--select-optgroup" label="Category 2">
        <option class="bx--select-option" value="option1">Option 1</option>
        <option class="bx--select-option" value="option2">Option 2</option>
      </optgroup>
    </select>
    <svg class="bx--select__arrow" width="10" height="5" viewBox="0 0 10 5">
      <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" />
    </svg>
    <label for="select-id" class="bx--label">Select label</label>
  </div>
</div>
<div class="bx--form-item">
  <button class="bx--btn bx--btn--primary" type="button">Submit</button>
</div>
    
  </div>
  

              
            
!

CSS

              
                .wrapper {
  padding: 2rem 3%;

}

.bx--form-item {
	    margin-bottom: 1.5rem;
}
              
            
!

JS

              
                

              
            
!
999px

Console