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

              
                 <form class="signup" action="#" method="post">
  <div class="signup__headfoot signup__headfoot--header">
  <h1 class="no-margin">Sign Up Now!</h1>
  <p>Sign up and tell us what you think of the site!</p>
  </div>
  <div class="signup__frame">
    <fieldset class="signup__fieldset">
      <legend class="signup__legend"><span class="signup__legend--number">1</span> Name & Address</legend>
      <div class="signup__fieldset__field">
        <label class="signup__label" for="name">Full Name</label>
        <input class="signup__input signup__field--margin" type="text" id="name" name"user_name"/>
        <label class="signup__label" for="adresse">Adresse</label>
        <input class="signup__input" type="text" id="addresse" name="user_addresse"/>
      </div>
    </fieldset>

    <fieldset class="signup__fieldset">
      <legend class="signup__legend"><span class="signup__legend--number">2</span> Email & Phone</legend>
      <div class="signup__fieldset__field">
        <label class="signup__label" for="mail">Email</label>
        <input class="signup__input signup__field--margin" type="email" id="mail" name"user_mail"/>
        <label class="signup__label" for="phone">Phone Number</label>
        <input class="signup__input" type="tel" id="phone" name="user_phone"/>
      </div>
    </fieldset>

    <fieldset class="signup__fieldset">
      <legend class="signup__legend"><span class="signup__legend--number">3</span> Password</legend>
      <div class="signup__fieldset__field">
        <label class="signup__label" for="pw1">Password</label>
        <input class="signup__input signup__field--margin" type="password" id="pw1" name"user_pw"/>
        <label class="signup__label" for="pw2">Retype Password</label>
        <input class="signup__input" type="password" id="pw2" name="user_pw"/>
      </div>
    </fieldset>    

    <div class="signup__field--margin signup__btn__margin">
      <button class="signup__btn" type="submit">Submit</button>
    </div>
  </div>

  <div class="signup__headfoot signup__headfoot--footer">
    <div class="signup__headfoot__center-footer">
      <input type="checkbox" id="TC" value="TC_accepted" name="company_TC"/>
      <label class="signup__footer__label" for="TC">I agree to the <a href="#">Terms and Conditions</a></label>
    </div>
  </div>
</form>
              
            
!

CSS

              
                /****************
BASE RULES
****************/

body {
  background: #fff;
}

h1,
p {
  text-align: center;
}

p {
  margin: 8px 0 0 0;
}

fieldset {
  border: none;
}

button {
  border: none;
  text-align: center;
}

/****************
LAYOUT RULES
****************/

.signup {
  max-width: 500px;
  min-width: 300px;
  margin: 20px auto;
  border-radius: 8px;
  color: #888;
}

/****************
MODULE RULES
****************/

.signup__fieldset {
  margin: 30px auto;
  padding: 0 30px;
}

.signup__legend {
  color: #2a88ad;
  font: normal 20px serif;
  margin-bottom: 10px;
  padding-left: 30px;
}

.signup__label {
  display: block;
  margin-bottom: 5px;
}

.signup__btn {
  padding: 20px 0;
  border-radius: 6px;
  display: block;
  width: 100%;
  background: #2a88ad;
  color: white;
}

.signup__headfoot {
  background: #2a88ad;
  color: white;
  padding: 30px 0;
}

.signup__headfoot__center-footer {
  margin: 0 auto;
  width: 52%;
}

.signup__frame {
  padding: 1px 0; /* to avoid margin collaps */
  border-left: 1px solid #2a88ad;
  border-right: 1px solid #2a88ad;
}

.signup__fieldset__field {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
}

.signup__input {
  width: 100%;
  border: 2px solid #fff;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.33);
  padding: 8px;
  border-radius: 8px;
  font: 13px Arial,Helvetica,sans-serif;
  box-sizing: border-box;
}

.signup__btn__margin {
  margin-left: 60px;
  margin-right: 60px;
}

.signup__footer__label {
  display: inline;
  font-size: 0.8em;
  margin-left: 4px;
  color: white;
  text-indent: 15px
}

.no-margin {
  margin: 0;
}

/****************
STATE RULES
****************/

.signup__headfoot--header {
  border-radius: 8px 8px 0 0;
}

.signup__headfoot--footer {
  border-radius: 0 0 8px 8px;
}

.signup__field--margin {
  margin-bottom: 30px;
}

.signup__legend--number {
  display: inline-block;
  background: #2a88ad;
  color: #fff;
  width: 30px;
  line-height: 30px;
  border-radius: 100% 100% 100% 20%;
  text-align: center;
  margin-right: 3px;
  font-size: 0.9rem;
}

/****************
THEME RULES
****************/

              
            
!

JS

              
                
              
            
!
999px

Console