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

Quick-add: + add another resource

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.

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 class="card card-block bg-faded">
  <legend class="m-b-1 text-xs-center">Sign up</legend>

  <div class="form-group input-group">
    <span class="has-float-label">
      <input class="form-control" id="first" type="text" placeholder="Name"/>
      <label for="first">First</label>
    </span>
    <label class="has-float-label">
      <input class="form-control" type="text" placeholder="Surname"/>
      <span>Last</span>
    </label>
  </div>

  <div class="form-group input-group">
    <span class="input-group-addon">@</span>
    <label class="has-float-label">
      <input class="form-control" type="email" placeholder="email@example.com" value="email@example.com"/>
      <span>Email</span>
    </label>
  </div>

  <div class="form-group has-float-label">
    <input class="form-control" id="password" type="password" placeholder="••••••••"/>
    <label for="password">Password</label>
  </div>

  <label class="form-group has-float-label">
    <select class="form-control custom-select">
      <option selected>United States</option>
      <option>Canada</option>
      <option>...</option>
    </select>
    <span>Country</span>
  </label>

  <div class="form-group">
    <label class="custom-control custom-checkbox">
      <input class="custom-control-input" type="checkbox"/>
      <span class="custom-control-indicator"></span>
      <span class="custom-control-description">Subscribe to newsletter</span>
    </label>
  </div>

  <button class="btn btn-block btn-primary" type="submit">Sign up</button>
</form>

<!---->

<a href="https://github.com/tonystar/bootstrap-float-label" target="_blank">
  <img src="https://img.shields.io/github/stars/tonystar/bootstrap-float-label.svg?style=social&label=Star"/>
</a>

            
          
!
            
              /*
Powered by:
- https://github.com/tonystar/bootstrap-float-label
- https://github.com/tonystar/float-label-css
- https://v4-alpha.getbootstrap.com/
*/

body {
  position: relative;
  max-width: 25rem;
  margin: 2rem auto;
}
a {
  display: block;
  padding: 10px;
  position: absolute;
  z-index: -1;
  top: 1rem;
  left: 100%;
  margin-left: -62px;
  transition: all .2s;
}
a:hover {
  margin-left: 0;
}

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

Console