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

Packages

Add Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import or require. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/styles.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
    <script
    src="http://code.jquery.com/jquery-3.2.1.min.js"
    integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
    crossorigin="anonymous"></script>
    <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  <title>Component Library</title>
  </head>
  <body>
  <div class="container">
    <h1>Accessible Bootstrap Form Elements</h1>
    <h4>Aria labels / W3C optimized</h4><br>
    <div class="row">
      <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="panel panel-default">
          <div class="panel-heading clearfix">
            <i class="icon-calendar"></i>
            <h3 class="panel-title">Input Groups</h3>
          </div>

          <div class="panel-body">
            <div class="row">
              <div class="col-lg-4 col-sm-4">
                <div class="input-group">
                  <span class="input-group-addon"><i class="fa fa-user" aria-hidden="true"></i></span>
                  <input type="text" class="form-control" placeholder="Username">
                </div>
              </div>
              <div class="col-lg-4 col-sm-4">
                <div class="input-group">
                  <input type="text" class="form-control">
                  <span class="input-group-addon">.com</span>
                </div>
              </div>
              <div class="col-lg-4 col-sm-4">
                <div class="input-group">
                  <span class="input-group-addon"><i class="fa fa-user" aria-hidden="true"></i></span></span>
                  <input type="text" class="form-control">
                  <span class="input-group-addon">@microsoft.com</span>
                </div>
              </div>
            </div>
          </div>
        </div>

        <div class="row">
          <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="panel panel-default">
              <div class="panel-heading clearfix">
                <i class="icon-calendar"></i>
                <h3 class="panel-title">Button Addons</h3>
              </div>

              <div class="panel-body">
                <div class="row">
                  <div class="col-lg-4 col-sm-4">
                    <div class="input-group">
                      <input type="text" class="form-control">
                      <span class="input-group-btn">
                        <button class="btn btn-default" type="button" data-original-title="" title=""><i class="fa fa-search" aria-hidden="true"></i></button>
                      </span>
                    </div>
                  </div>
                  <div class="col-lg-4 col-sm-4">
                    <div class="input-group">
                      <input type="text" class="form-control">
                      <span class="input-group-btn">
                        <button class="btn btn-default" type="button" data-original-title="" title=""><i class="fa fa-file-o" aria-hidden="true"></i></button>
                      </span>
                    </div>
                  </div>
                  <div class="col-lg-4 col-sm-4">
                    <div class="input-group">
                      <input type="text" class="form-control">
                      <span class="input-group-btn">
                        <button class="btn btn-default" type="button" data-original-title="" title=""><i class="fa fa-paper-plane" aria-hidden="true"></i></button>
                      </span>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>

        <div class="row">
          <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="panel panel-default">
              <div class="panel-heading clearfix">
                <i class="icon-calendar"></i>
                <h3 class="panel-title">Dropdowns</h3>
              </div>

              <div class="panel-body">
                <div class="row">
                  <div class="col-lg-4 col-sm-4">
                    <div class="dropdown">
                      <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                        Default Dropdown
                        <span class="caret"></span>
                      </button>
                      <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                      </ul>
                    </div>
                  </div>
                  <div class="col-lg-4 col-sm-4">
                    <div class="dropdown">
                      <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                        Dropdown with headers
                        <span class="caret"></span>
                      </button>
                      <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                        <li class="dropdown-header" style="font-size: 14px; font-weight: 200;">Dropdown header 1</li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>

                        <li role="separator" class="divider"></li>
                        <li class="dropdown-header" style="font-size: 14px; font-weight: 200;">Dropdown header 1</li>
                        <li><a href="#">Separated link</a></li>
                      </ul>
                    </div>
                  </div>
                  <div class="col-lg-4 col-sm-4">
                    <div class="btn-group">
                      <a class="btn btn-default" href="#">
                        <i class="icon-user icon-white"></i>Split Button Dropdown
                      </a>
                      <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">
                        <span class="caret"></span>
                      </a>
                      <ul class="dropdown-menu">
                        <li><a href="#">Edit</a></li>
                        <li><a href="#">Delete</a></li>
                      </ul>
                    </div>
                  </div>

                </div>
              </div>
            </div>

    <div class="row">
      <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="panel panel-default">
          <div class="panel-heading clearfix">
            <i class="icon-calendar"></i>
            <h3 class="panel-title">Check Boxes &amp; Radio Addons</h3>
          </div>

          <div class="panel-body">
            <div class="row">
              <div class="col-md-3 col-sm-3">
                <div class="input-group">
                  <span class="input-group-addon">
                    <input type="checkbox">
                  </span>
                  <input type="text" class="form-control">
                </div>
              </div>
              <div class="col-md-3 col-sm-3">
                <div class="input-group">
                  <span class="input-group-addon">
                    <input type="checkbox" checked="">
                  </span>
                  <input type="text" class="form-control">
                </div>
              </div>
              <div class="col-md-3 col-sm-3">
                <div class="input-group">
                  <span class="input-group-addon">
                    <input type="radio" name="optionsRadio" id="optionsRadiosX" value="optionx">
                  </span>
                  <input type="text" class="form-control">
                </div>
              </div>
              <div class="col-md-3 col-sm-3">
                <div class="input-group">
                  <span class="input-group-addon">
                    <input type="radio" name="optionsRadio" id="optionsRadiosY" value="optiony" checked="">
                  </span>
                  <input type="text" class="form-control">
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- Row end -->

    <!-- Row start -->
    <div class="row">
      <div class="col-md-6 col-sm-6 col-xs-12">
        <div class="panel panel-default">
          <div class="panel-heading clearfix">
            <i class="icon-calendar"></i>
            <h3 class="panel-title">Check boxes</h3>
          </div>

          <div class="panel-body">
            <label class="checkbox-inline">
              <input type="checkbox" id="inlineCheckbox1" value="option1" checked=""> 1
            </label>
            <label class="checkbox-inline">
              <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
            </label>
            <label class="checkbox-inline">
              <input type="checkbox" id="inlineCheckbox3" value="option3" disabled=""> 3
            </label>
          </div>
        </div>
      </div>
      <div class="col-md-6 col-sm-6 col-xs-12">
        <div class="panel panel-default">
          <div class="panel-heading clearfix">
            <i class="icon-calendar"></i>
            <h3 class="panel-title">Radio buttons</h3>
          </div>

          <div class="panel-body">
            <label class="radio-inline">
              <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked=""> 1
            </label>
            <label class="radio-inline">
              <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">2
            </label>
            <label class="radio-inline">
              <input type="radio" name="optionsRadios" id="optionsRadios3" value="option2" disabled="">3
            </label>
          </div>
        </div>
      </div>
    </div>
    <!-- Row end -->

    <!-- Row start -->
    <div class="row">
      <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="panel panel-default">
          <div class="panel-heading clearfix">
            <i class="icon-calendar"></i>
            <h3 class="panel-title">Inline Form</h3>
          </div>

          <div class="panel-body">
            <form class="form-inline" role="form">
              <div class="form-group">
                <label class="sr-only" for="exampleInputEmail2">Email address</label>
                <input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email">
              </div>
              <div class="form-group">
                <label class="sr-only" for="exampleInputPassword2">Password</label>
                <input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password">
              </div>
              <div class="checkbox">
                <label>
                  <input type="checkbox"> Remember me
                </label>
              </div>
              &nbsp;<button type="submit" class="btn btn-default" title="">Sign in</button>
            </form>
          </div>
        </div>
      </div>
    </div>
    <!-- Row end -->

    <!-- Row start -->
    <div class="row">
      <div class="col-md-12 col-sm-6 col-xs-12">
        <div class="panel panel-default">
          <div class="panel-heading clearfix">
            <i class="icon-calendar"></i>
            <h3 class="panel-title">Inputs</h3>
          </div>

          <div class="panel-body">
            <form class="form-horizontal row-border" action="#">
              <div class="form-group">
                <label class="col-md-2 control-label">Default input field</label>
                <div class="col-md-10">
                  <input type="text" name="regular" class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-2 control-label">Password</label>
                <div class="col-md-10">
                  <input class="form-control" type="password" name="pass">
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-2 control-label">With placeholder</label>
                <div class="col-md-10">
                  <input class="form-control" type="text" name="placeholder" placeholder="placeholder">
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-2 control-label">Disabled field</label>
                <div class="col-md-10">
                  <input type="text" name="disabled" disabled="disabled" value="disabled" class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-2 control-label">Read only field</label>
                <div class="col-md-10">
                  <input class="form-control" type="text" name="readonly" readonly="" value="read only">
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-2 control-label">Help text</label>
                <div class="col-md-10">
                  <input type="text" name="regular" class="form-control">
                  <span class="help-block"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> A block of help text that breaks onto a new line and may extend beyond one line.</span>
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-2 control-label">Predefined value</label>
                <div class="col-md-10">
                  <input type="text" name="regular" value="http://" class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-md-2 control-label">Column sizing</label>
                <div class="col-md-10">
                  <div class="row">
                    <div class="col-xs-3">
                      <input type="text" class="form-control" placeholder=".col-xs-3">
                    </div>
                    <div class="col-xs-5">
                      <input type="text" class="form-control" placeholder=".col-xs-5">
                    </div>
                    <div class="col-xs-4">
                      <input type="text" class="form-control" placeholder=".col-xs-4">
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group has-success">
                <label class="col-md-2 control-label">Input success</label>
                <div class="col-md-10">
                  <input type="text" class="form-control" id="inputSuccess" placeholder="Input Success">
                  <i class="icon-pencil input-icon success"></i>
                </div>
              </div>
              <div class="form-group has-warning">
                <label class="col-md-2 control-label">Input warning</label>
                <div class="col-md-10">
                  <input type="text" class="form-control" id="inputWarning" placeholder="Input Warning">
                  <i class="icon-pencil input-icon warning"></i>
                </div>
              </div>
              <div class="form-group has-error">
                <label class="col-md-2 control-label">Input error</label>
                <div class="col-md-10">
                  <input type="text" class="form-control" id="inputError" placeholder="Input Error">
                  <i class="icon-pencil input-icon error"></i>
                </div>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
  </body>
</html>

            
          
!
999px

Console