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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <div class="container">
    <div class="row text-center">
        <div class="col-lg-12">
            <form>
                <h2>Login</h2>
                <div class="form-group margin-below">
                    <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="username"
                           placeholder="Username">
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
                </div>
                <button type="submit" class="btn2 btn-primary">Login</button>
                <button type="submit" class="btn btn-primary">Forgot password</button>
            </form>
        </div>
    </div>
    <div class="row text-center">
        <div class="col-lg-12">
            <form>
                <h2>Register</h2>
                <div class="form-group margin-below">
                    <input type="text" class="form-control" id="username" aria-describedby="username"
                           placeholder="Username">
                </div>
                <div class="form-group margin-below">
                    <input type="email" class="form-control" id="email" aria-describedby="Email"
                           placeholder="Email">
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" id="password" placeholder="Password">
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" id="password2" placeholder="Repeat Password">
                </div>
                <button type="submit" class="btn2 btn-primary">Sign up</button>
            </form>
        </div>
    </div>
    <div class="row text-center">
        <div class="col-lg-12">
            <form>
                <h2>Subscribe</h2>
                <div class="form-group margin-below">
                    <input type="email" class="form-control" id="email" aria-describedby="Email"
                           placeholder="Email">
                </div>
                <button type="submit" class="btn2 btn-primary">Sign up</button>
            </form>
        </div>
    </div>
    <div class="row text-center">
        <div class="col-lg-12">
            <form>
                <h2>Contact</h2>
                <div class="form-group margin-below">
                    <input type="text" class="form-control" id="name" aria-describedby="name"
                           placeholder="Name">
                </div>
                <div class="form-group margin-below">
                    <input type="text" class="form-control" id="subject" aria-describedby="subject"
                           placeholder="Subject">
                </div>
                <div class="form-group margin-below">
                    <input type="email" class="form-control" id="email" aria-describedby="Email"
                           placeholder="Email">
                </div>
                <div class="form-group">
                    <textarea class="form-control" id="text" placeholder="Your message" rows="4"></textarea>
                </div>
                <button type="submit" class="btn2 btn-primary">Send</button>
            </form>
        </div>
    </div>
              
            
!

CSS

              
                 label, select, button, input[type="submit"], input[type="radio"], input[type="checkbox"] input[type="button"] {
     cursor: pointer;
}
 body {
     background: #2b46ae;
}
 h2{
     text-align: center;
     margin-bottom: 1.8rem;
}
 form {
     background: #fff;
     border-radius: .2rem;
     padding: 1.3rem;
     width: 350px;
     margin: 2rem auto;
     box-shadow: 16px 16px 5px 0px rgba(0, 0, 0, .1);
}
 input {
     width: 100%;
     background: #f5f5f5;
     border: 0;
     padding: 20px;
     border-radius: 6px;
     margin-bottom: 10px;
     border: 1px solid #eee;
}
 .btn {
     width: 100%;
     padding: 15px;
     border: 0;
     background: #e47870;
     font-size: 1.2em;
     color: #fff;
     text-shadow: 1px 1px 0px rgba(0, 0, 0, .4);
     box-shadow: 0px 3px 0px #d1534f;
     margin-top: 1.2rem;
}
 .btn2 {
     width: 100%;
     padding: 15px;
     border: 0;
     background: #7fe489;
     font-size: 1.2em;
     color: #fff;
     text-shadow: 1px 1px 0px rgba(0, 0, 0, .4);
     box-shadow: 0px 3px 0px #4dbc51;
     margin-top: 1.2rem;
     border-radius: .25rem;
}
 .btn:active {
     top: 3px;
     box-shadow: none;
}
 .btn2:hover {
     color: #fff;
     background: #63b968;
     border-color: #166f67;
}
 .btn:hover {
     color: #fff;
     background: #c66363;
     border-color: #b73838;
}
 h6 {
     text-align: center;
     padding: 20px;
     padding-top: 35px;
     color: #777;
     cursor: pointer;
}
 .form-control {
     display: block;
     width: 100%;
     padding: .5rem .75rem;
     font-size: 1rem;
     line-height: 1.25;
     color: #55595c;
     background-color: #f9f9f9;
     background-image: none;
     -webkit-background-clip: padding-box;
     background-clip: padding-box;
     border: 1px solid rgba(0,0,0,.15);
     border-radius: .25rem;
}
 .margin-below{
     margin-bottom: 1.2rem;
}
 .form-control:focus {
     border-color: #5c5c5c;
     box-shadow: inset 0 1px 1px rgba(45, 45, 45, 0.07), 0 0 8px rgba(129, 129, 129, 0.6);
}

              
            
!

JS

              
                
              
            
!
999px

Console