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. 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

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

              
                <link rel="stylesheet" href="https://dev.assets.emblstatic.net/vf/develop/css/styles.css">
<form class="vf-stack vf-stack--400" action="#" method="get">
  <fieldset class="vf-form__fieldset vf-stack vf-stack--400">
    <legend class="vf-form__legend">Pick your favourite(s).</legend>
    <div class="vf-form__item vf-form__item--checkbox">
      <input type="checkbox" name="fruits" value="bums" id="fruit_02" class="vf-form__checkbox" checked>
      <label for="fruit_02" class="vf-form__label">Bananas</label>
      <p class="vf-form__helper">Some text to help with things</p>
    </div>

    <div class="vf-form__item vf-form__item--checkbox">
      <input type="checkbox" name="fruits" value="pears" id="fruit_05" class="vf-form__checkbox" disabled>
      <label for="fruit_05" class="vf-form__label">Pears</label>
    </div>

    <div class="vf-form__item vf-form__item--checkbox">
      <input type="checkbox" name="fruits" value="strawberries" id="fruit_06" class="vf-form__checkbox vf-form__checkbox--invalid">
      <label for="fruit_06" class="vf-form__label | vf-form__label--required">Strawberries<span class="vf-u-sr-only">field is required.</span>
        <svg class="vf-icon vf-icon--asterick" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
          <title>asterick</title>
          <path d="M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z" />
        </svg>
      </label>
      <p class="vf-form__helper vf-form__helper--error">You didn't pick Strawberries?</p>
    </div>
  </fieldset>

  <fieldset class="vf-form__fieldset | vf-stack vf-stack--400">
    <legend class="vf-form__legend">Which do you like?</legend>
    <div class="vf-form__item vf-form__item--radio">
      <input type="radio" name="fruits" value="Apples" id="1" class="vf-form__radio" checked>
      <label for="1" class="vf-form__label">Apples</label>
      <p class="vf-form__helper">Some text to help with things</p>
    </div>
    <div class="vf-form__item vf-form__item--radio">
      <input type="radio" name="fruits" value="Bananas" id="2" class="vf-form__radio">
      <label for="2" class="vf-form__label">Bananas</label>
    </div>
    <div class="vf-form__item vf-form__item--radio">
      <input type="radio" name="fruits" value="Pears" id="5" class="vf-form__radio" disabled>
      <label for="5" class="vf-form__label">Pears</label>
    </div>
  </fieldset>

  <div class="vf-form__item vf-stack">

    <label class="vf-form__label" for="vf-form__select">Choose a pet:</label>

    <select class="vf-form__select" id="vf-form__select">
      <option value="cat">Cat</option>
      <option value="hamster">Hamster</option>
      <option value="parrot">Parrot</option>
      <option value="dog" selected>Dog</option>
      <option value="spider">Spider</option>
      <option value="goldfish">Goldfish</option>
    </select>
  </div>
  <div class="vf-form__item vf-stack">
    <label for="text" class="vf-form__label vf-form__label--required">
      Form Label
      <span class="vf-u-sr-only">this field is required.</span>
      <svg class="vf-icon vf-icon--asterick" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
        <title>asterick</title>
        <path d="M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z" />
      </svg>
    </label>

    <p class="vf-form__helper">Form helper text</p>

    <input type="text" id="text" class="vf-form__input">

    <p class="vf-form__helper vf-form__helper--error">You have done something wrong.</p>

  </div>
</form>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console