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

              
                <div class="formDiv">

      <h3 class="formHead">Create Log In</h3>

      <div class="field">
        <label class="label">NAME</label>
        <div class="control">
          <input class="input" type="text" placeholder="enter name">
        </div>
        <p class="warning">first and last name</p>
      </div>

      <div class="field">
        <label class="label">USERNAME</label>
        <div class="control">
          <input class="input" type="text" placeholder="create username" value="">
        </div>
        <p class="warning">do not use first and last name</p>
      </div>

      <div class="field">
        <label class="label">PASSWORD</label>
        <div class="control">
          <input class="input" type="text" placeholder="create password" value="">
        </div>
        <p class="warning">must be at least 8 characters</p>
      </div>

      <div class="field">
        <label class="label">EMAIL</label>
        <div class="control">
          <input class="input" type="email" placeholder="Email input" value="enter email">
        </div>
        <p class="warning">must be a valid email address</p>
      </div>

      <div class="field">
        <label class="label">ACCOUNT TYPE</label>
        <div class="control">
          <div class="select">
            <select>
              <option>Public</option>
              <option>Private</option>
            </select>
          </div>
        </div>
      </div>

      <div class="field">
        <label class="label">MESSAGE</label>
        <div class="control">
          <textarea class="textarea" placeholder="optional message"></textarea>
        </div>
      </div>

      <div class="field">
        <div class="control">
          <label class="checkbox">
            <input type="checkbox">
            I agree to the <a href="#">terms and conditions</a>
          </label>
        </div>
      </div>

      <div class="field">
        <div class="control">
          Receive promotional emails?&nbsp;
          <label class="radio">
            <input type="radio" name="question">
            YES
          </label>&nbsp;
          <label class="radio">
            <input type="radio" name="question">
            NO
          </label>
        </div>
      </div>

      <div class="formBtn">
        <button class="btnBlue" id="frmBtn"><a href="#" target="_blank">SUBMIT</a></button>
        <button class="btnGray" id="frmBtn"><a href="#" target="_blank">CANCEL</a></button>
      </div>

    </div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Amatic+SC|Barlow');
body, html {
  height: 100%;
  margin: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #5D5046;
  }
h1, h2, h3, h4, h5, h6, p {
/*These settings are borrowed from the reset.css stylesheet,
http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain)*/
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
h1 {
  font-family: 'Amatic SC', cursive;
  font-size: 120px;
}
h2 {
  font-family: 'Amatic SC', cursive;
  font-size: 45px;
}
h3 {
  font-family: 'Amatic SC', cursive;
  font-size: 35px;
}
h4 {
  font-family: 'Amatic SC', cursive;
  font-size: 28px;
}
h5 {
  font-family: 'Amatic SC', cursive;
  font-size: 22px;
}
h6 {
  font-family: 'Amatic SC', cursive;
  font-size: 18px;
}
p, li {
  line-height: 1.5;
}
a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
}
a:hover {
  color: black;
  opacity: .5;
}
button {
  border: none;
  font-family: 'Barlow', sans-serif;
  color: #ffffff;
  font-size: 14px;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
  margin: 0 3px;
}
.btnGray {
  background: #9E9E9E;
}
.btnBlue {
  background: #98b9d6;
}
.btnBrown {
  background: #c9a775;
}
.formDiv {
  background: #c9a775;
  padding: 40px;
  margin: 0% 6% 40px 6%;
}
.formHead {
  color: white;
  padding-bottom: 20px;
}
.field {
  padding-bottom: 10px;
}
.label {
  color: white;
}
.input {
  width: 80%;
  border: 0;
  height: 28px;
  padding-left: 5px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #5D5046;
}
select {
  height: 28px;
  width: 40%;
  padding-left: 5px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: white;
  border: 0;
  background: #98b9d6;
}
option {
  background: white;
  color: #5D5046;
}
.textarea {
  width: 100%;
  border: 0;
  height: 60px;
  padding: 5px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
}
.radio {
  color: white;
}
.formBtn {
  text-align: left;
  padding-top: 20px;
}
#frmBtn {
  min-width: 120px;
}
/*---------------------------------
BUTTON BREAKPOINTS
---------------------------------*/
@media (min-width:100px) {
button {font-size: 21px;}
}
@media (min-width:414px) {
button {font-size: 24px;}
}
@media (min-width:480px) {
button {font-size: 21px;}
}
@media (min-width:768px) {
button {font-size: 17px;}
}
@media (min-width:1024px) {
button {font-size: 14px;}
}
/*------------------------------------------
BODY TEXT BREAKPOINTS
------------------------------------------*/
@media (min-width:100px) {
body {font-size: 21px;}
}
@media (min-width:414px) {
body {font-size: 24px;}
}
@media (min-width:480px) {
body {font-size: 21px;}
}
@media (min-width:768px) {
body {font-size: 17px;}
}
@media (min-width:1024px) {
body {font-size: 14px;}
}

              
            
!

JS

              
                
              
            
!
999px

Console