cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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.

            
              <hr>
<!-- Wrapper -->
<div class="container">
<!--Inline form-->  
  <form class="form-horizontal">
    <!--bootstrap form markup-->
    <div class="form-group phone-number">
      <!--col on label (could float instead)-->
      <label class="col-sm-2 control-label">Phone</label>
      <div class="col-xs-3">
        <!--first col-->
        <input name="phone" class="form-control" size="3" maxlength="3">
      </div>
      <div class="col-xs-3">
        <!--second col-->
        <input name="phone" class="form-control" size="3" maxlength="3">
      </div>
      <div class="col-xs-4">
        <!--last col-->
        <input name="phone" class="form-control" size="4" maxlength="4">
      </div>
    </div>
  </form>
</div>
            
          
!
            
              /*Phone Number Input "hack"*/

.phone-number .col-xs-3::after {
 /*content property for dashes*/ 
  content: "-";
  position: absolute;
  /*place them where we want*/
  right: 5px;
  color: black;
  border: 0px solid;
  top: 5px;
}
.phone-number .col-xs-4{
  width:75px;
}
.phone-number .col-xs-3{
  width:65px;
}
/*clear padding*/
.phone-number .col-xs-3,
.phone-number .col-xs-4 {
  padding-left: 0;
}
label{
  float:left;
}
/*Weird inline bug with small sizes fix*/
@media (max-width: 767px) {
  .control-label{
    margin-top:5px;
  }
}

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console