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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <form id="myform" action="get">
    <legend>Your web development skillset</legend>
    <div class="formgrid">
      <input id="name" name="name" type="text" />
      <label for="name">name</label>
      <select id="experience" name="experience">
        <option value="1">1 year or less</option>
        <option value="2">2 years</option>
        <option value="3">3 - 4 years</option>
        <option value="5">5 years or more</option>
      <label for="experience">experience</label>
      <input id="html" name="html" type="checkbox" />
      <label for="html">HTML</label>
      <input id="css" name="css" type="checkbox" />
      <label for="css">CSS</label>
      <input id="javascript" name="javascript" type="checkbox" />
      <label for="javascript">JavaScript</label>
      <textarea id="skills" name="skills" rows="5" cols="20"></textarea>
      <label for="skills">other skills</label>
      <button type="submit">SUBMIT</button>

<p>This layout uses floated field and label elements. It works in all browsers including IE8 and above. However, label alignment is difficult and the layout can break at smaller screensizes. CSS changes are required if longer labels become necessary.</p>
              /* basic styles */
body, input, textarea, select, option, button, label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 100%;

body {
  color: #333;
  background-color: #9bd;

p {
  max-width: 40em;
  margin: 1em auto;

fieldset {
  max-width: 40em;
  padding: 4px;
  margin: 2em auto;
  border: 0 none;

legend {
  font-size: 1.2em;
  width: 100%;
  border-bottom: 1px dotted #99c;

input, output, textarea, select, button {
  box-sizing: border-box;
  padding: 0.2em 0.4em;
  margin: 0.2em 0;
  outline: 0 none;
  border: 0 none;
  box-shadow: none;

button {
  max-width: 9em;
  padding: 0.2em 2em;
  background-color: #ddd;
  box-shadow: 0 2px 0 #bbb;
  cursor: pointer;

label {
  box-sizing: border-box;
  user-select: none;
  cursor: pointer;

input:focus + label, textarea:focus + label, select:focus + label {
  color: #933;

input:checked + label {
  font-weight: bold;

/* fallback 30%/70% float layout */
input, output, textarea, select, button {
  clear: both;
  float: right;
  width: 70%;

label {
  float: left;
  width: 30%;
  text-align: right;
  padding: 0.25em 1em 0 0;

button, input[type="checkbox"], input[type="radio"] {
  width: auto;
  float: left;
  margin: 0.5em 0.5em 0 30%;

input[type="checkbox"] + label, input[type="radio"] + label {
  width: auto;
  text-align: left;
  e => {
    alert('Nothing to see here.\nPlease move along.');
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.