cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <form id="comments_form" action="#" method="post">
  <fieldset>
    <legend>Your Contact Details</legend>
    <p>
      <label for="author">Name: <em class="required">(Required)</em></label>
      <input name="author" id="author" type="text" />
    </p>

    <p>
      <label for="email">Email Address:</label>
      <input name="email" id="email" type="text" />
    </p>

    <p>
      <label for="pass">Password:</label>
      <input name="pass" id="pass" type="password" />
    </p>
  </fieldset>

  <fieldset>
    <legend>Comments</legend>
    <p>
      <label for="text">Message: <em class="required">(Required)</em></label>
      <textarea name="text" id="text" cols="20" rows="10"></textarea>
    </p>
  </fieldset>

  <p>
    <input type="button" value="Submit!" id="btnSubmit"/>
  </p>

</form>
            
          
!
            
              

body {
    font: 62.5%/1 "Myriad Pro", Frutiger, "Lucida Grande", "Lucida Sans", "Lucida Sans Unicode", Verdana, sans-serif;
}

form {
    font-size: 1.4em;
    width: 30em;
}


/* fieldset styling */
fieldset {
    margin: 1em 0; /*  space out the fieldsets a little*/
    padding: 1em;
    border : 1px solid #ccc;
}

/* legend styling */
legend {
    font-weight: bold;
}


/* style for  labels */
label {
    display: block;
}

/* style for required labels */
label .required {
    font-size: 0.75em;
    color:#760000;
}

input {
    width: 200px;
}


input.radio, input.submit {
    width: auto;
}

/* style form elements on focus */
input:focus, textarea:focus {
    background: #ffc;
}

input.radio {
    float: left;
    margin-right: 1em;
}

textarea {
    width: 300px;
    height: 100px;
}

/* Hack to make sure the floated radio buttons
   sit next to the labels correctly in IE/Mac*/

/* This is the style I want IE/Mac to see */
input.radio + label {
    text-indent: 2em;
}

/* Using the commented backslash filter, I'm resetting
   the above rule for everything other than IE5/Mac \*/
input.radio + label {
    text-indent: 0;
}


            
          
!
999px
Loading ..................

Console