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 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

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

              
                 <header>
        <nav class="navbar navbar-default navbar-fixed-top navbar-inverse" role="navigation">
            <div class="container-fluid">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">Brand</a>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li class="active"><a href="#">Link</a></li>
                        <li><a href="#">Link</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="#">Action</a></li>
                                <li><a href="#">Another action</a></li>
                                <li><a href="#">Something else here</a></li>
                                <li class="divider"></li>
                                <li><a href="#">Separated link</a></li>
                                <li class="divider"></li>
                                <li><a href="#">One more separated link</a></li>
                            </ul>
                        </li>
                    </ul>
                    <form class="navbar-form navbar-left" role="search">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="Search" />
                        </div>
                        <button type="submit" class="btn btn-default">Submit</button>
                    </form>
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="#">Link</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="#">Action</a></li>
                                <li><a href="#">Another action</a></li>
                                <li><a href="#">Something else here</a></li>
                                <li class="divider"></li>
                                <li><a href="#">Separated link</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <!-- /.navbar-collapse -->
            </div>
            <!-- /.container-fluid -->
        </nav>
    </header>
    <section class="main">
        <div class="container">
            <div class="row">
                <div class="col-xs-6">
                    <form>
                        <fieldset>
                            <legend>Personal Information:</legend>
                            <div class="form-group row">
                                <div class="col-md-4">
                                    <label for="firstName">First Name </label>
                                    <input type="text" class="form-control" id="firstName" placeholder="Please enter first name">
                                </div>
                                <div class="col-md-4">
                                    <label for="firstName">Middle Name </label>
                                    <input type="text" class="form-control" id="firstName" placeholder="Please enter middle name">
                                </div>
                                <div class="col-md-4">
                                    <label for="firstName">Last Name </label>
                                    <input type="text" class="form-control" id="firstName" placeholder="Please enter last name">
                                </div>
                            </div>
                            <div class="form-group row">
                                <div class="col-md-6">
                                    <label for="firstName">Age </label>
                                    <input type="text" class="form-control" id="firstName" placeholder="Please enter age">
                                </div>
                                <div class="col-md-6">
                                    <label for="firstName">Sex </label>
                                    <input type="text" class="form-control" id="firstName" placeholder="Please enter sex">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="firstName">Address1 </label>
                                <textarea class="form-control" id="firstName" placeholder="Please enter address1"></textarea>
                            </div>
                            <div class="form-group">
                                <label for="firstName">Address2 </label>
                                <textarea class="form-control" id="firstName" placeholder="Please enter address2"></textarea>
                            </div>
                            <div class="form-group">
                                <label for="firstName">Country </label>
                                <input type="text" class="form-control" id="firstName" placeholder="Please enter country">
                            </div>
                            <div class="form-group row">
                                <div class="col-md-6">
                                    <label for="firstName">State </label>
                                    <input type="text" class="form-control" id="firstName" placeholder="Please enter state">
                                </div>
                                <div class="col-md-6">
                                    <label for="firstName">City </label>
                                    <input type="text" class="form-control" id="firstName" placeholder="Please enter city">
                                </div>
                            </div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox">
                                    Is Active
                                </label>
                            </div>
                            <button type="submit" class="btn btn-default">Submit</button>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </section>
    <footer class="navbar navbar-inverse navbar-fixed-bottom">
        <ul class="nav navbar-nav">
            <li class="active"><a href="#"><span class="glyphicon glyphicon-home"></span></a></li>
            <li><a href="#"><span class="glyphicon glyphicon-user"></span></a></li>
            <li><a href="#"><span class="glyphicon glyphicon-calendar"></span></a></li>
            <li><a href="#"><span class="glyphicon glyphicon-comment"></span></a></li>
            <li><a href="#"><span class="glyphicon glyphicon-star"></span></a></li>
        </ul>
    </footer>
              
            
!

CSS

              
                /*================================================Layout design=================================================*/
html, body {
    height: 100%;
}

body {
    padding: 50px 0;
    background-color: #ccc;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
    background-size: 50px 50px;
}

.main {
    height: 100%;
    overflow-y: scroll;
}

    .main > .container {
        background-color: rgb(255, 255, 255);
        margin: 0px auto;
        padding-left: 10px;
        padding-right: 10px;
        -moz-box-shadow: 10px 8px 15px gray, -10px 8px 15px gray, 10px 8px 15px gray;
        -webkit-box-shadow: 10px 8px 15px gray, -10px 8px 15px gray, 10px 8px 15px gray;
        box-shadow: 10px 8px 15px gray, -10px 8px 15px gray, 10px 8px 15px gray;
        min-height: 100%;
    }

.navbar-inverse {
    background: #5f5f5f;
}

/*Prevent the Footer from Collapsing*/
footer .navbar-nav {
    float: left;
    margin: 0;
}

    footer .navbar-nav > li {
        float: left;
    }

        footer .navbar-nav > li > a {
            padding-top: 15px;
            padding-bottom: 15px;
        }
/*END: Prevent the Navbar from Collapsing*/

/*==========================Form Design=============================*/
form {
    padding: 15px;
}

.form-group > .form-group {
    padding-left: 0px;
    padding-right: 0px;
}

    .form-group > .form-group:nth-child(n+1) {
        padding-left: 5px;
        padding-right: 0px;
    }

    .form-group > .form-group:first-child {
        padding-left: 0px;
    }

.form-group > div[class*='col-'] {
    padding-left: 0px;
    padding-right: 0px;
}

    .form-group > div[class*='col-']:nth-child(n+1) {
        padding-left: 5px;
        padding-right: 0px;
    }

    .form-group > div[class*='col-']:first-child {
        padding-left: 15px;
    }

    .form-group > div[class*='col-']:last-child {
        padding-right: 15px;
    }

@media only screen and (max-width: 768px) and (min-width: 120px) {

    .form-group > div[class*='col-']:nth-child(n+1) {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
    }

    .form-group > div[class*='col-']:first-child {
        padding-right: 15px;
    }

    .form-group > div[class*='col-']:last-child {
        padding-left: 15px;
        padding-bottom: 0px;
    }
}

@media only screen and (max-width: 992px) and (min-width: 769px) {
    .form-group > div[class*='col-']:nth-child(n+1) {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
    }

    .form-group > div[class*='col-']:first-child {
        padding-right: 15px;
    }

    .form-group > div[class*='col-']:last-child {
        padding-left: 15px;
        padding-bottom: 0px;
    }
}

              
            
!

JS

              
                
              
            
!
999px

Console