Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

              
                <div class="container col-md-4" id="panel1">
  
  <h2>User Accounts</h2>
  
  <div class="col-md-8 form-group pull-left">
    <form class="navbar-form" role="search">
      <div class="form-group input-group col-md-12">
        <input type="text" class="form-control" placeholder="Search users" name="q" autofocus>
        <div class="input-group-btn">
          <button class="btn btn-default btn" type="submit"><i class="glyphicon glyphicon-search"></i></button>
        </div>
      </div>
    </form>
  </div>
  
  <div class="col-md-3 pull-left">
    <button type="submit" class="btn btn-primary" id="newaccount">Create New Account</button>
  </div>
  <!--<div class="form-group-sm col-md-2">
    <select id="bulk" class="form-control">
      <option disabled="disabled" selected="selected">Bulk Actions</option>
      <option>&ndash; Activate</option>
      <option>&ndash; Deactivate</option>
      <option>&ndash; Delete</option>
    </select>
  </div>
  <div class="form-group-sm col-md-4">
    <button type="submit" class="btn btn-default btn-sm">Apply</button>
  </div>-->
  
  <div class="form-group col-md-12">
    
    <table class="table table-bordered table-hover">
      <thead>
        <tr class="dropup">
          <!--<th><input type="checkbox" unchecked></th>-->
          <th>First Name</th>
          <th>Last Name <span class="caret"></span></th>
          <th>Company</th>
          <th>Company Name</th>
          <th>ISR</th>
          <th>OSR</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <!--<td><input type="checkbox" unchecked></td>-->
          <td>Susan</td>
          <td>Alston</td>
          <td>ALRMET</td>
          <td>Alro Steel Corp.</td>
          <td>SE</td>
          <td>DK</td>
        </tr>
        <tr>
          <!--<td><input type="checkbox" unchecked></td>-->
          <td>Roy L.</td>
          <td>Bain</td>
          <td>NAMCOR</td>
          <td>Kloeckner Metals Corp.</td>
          <td>LR</td>
          <td>LB</td>
        </tr>
        <tr>
          <!--<td><input type="checkbox" unchecked></td>-->
          <td>Richard</td>
          <td>Cardello</td>
          <td>ACESTE</td>
          <td>Ace Steel Inc.</td>
          <td>ST</td>
          <td>TP</td>
        </tr>
        <tr>
          <!--<td><input type="checkbox" unchecked></td>-->
          <td>Gene M.</td>
          <td>Devore</td>
          <td>BROSTR</td>
          <td>Brown-Strauss Steel</td>
          <td>LS</td>
          <td>CS</td>
        </tr>
        <tr id="demo">
          <!--<td><input type="checkbox" unchecked></td>-->
          <td>Stephanie</td>
          <td>Herbert</td>
          <td>ALRMET</td>
          <td>Alro Steel Corp.</td>
          <td>SE</td>
          <td>DK</td>
        </tr>
        <tr>
          <!--<td><input type="checkbox" unchecked></td>-->
          <td>Mark</td>
          <td>Otto</td>
          <td>ONESTE</td>
          <td>O'Neal Steel, Inc.</td>
          <td>SE</td>
          <td>DC</td>
        </tr>
        <tr>
          <!--<td><input type="checkbox" unchecked></td>-->
          <td>Tom</td>
          <td>Spires</td>
          <td>CHASTE</td>
          <td>Chatham Steel</td>
          <td>JC</td>
          <td>JI</td>
        </tr>
        <tr>
          <!--<td><input type="checkbox" unchecked></td>-->
          <td>Rebecca</td>
          <td>Springs</td>
          <td>INDMET</td>
          <td>Siskin Steel & Supply (IMS)</td>
          <td>JC</td>
          <td>LB</td>
        </tr>
        <tr>
          <!--<td><input type="checkbox" unchecked></td>-->
          <td>Kelly</td>
          <td>Thompson</td>
          <td>DELSTE</td>
          <td>Delta Steel</td>
          <td>MM</td>
          <td>KM</td>
        </tr>
        <tr>
          <!--<td><input type="checkbox" unchecked></td>-->
          <td>Jacob</td>
          <td>Thornton</td>
          <td>JMTULL</td>
          <td>Ryerson Procurement Corp.</td>
          <td>LS</td>
          <td>DC</td>
        </tr>
      </tbody>
    </table>
    
    <nav>
      <ul class="pagination">
        <li class="disabled"><a href="#"><span aria-hidden="true">«</span><span class="sr-only">Previous</span></a></li>
        <li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">5</a></li>
        <li><a href="#"><span aria-hidden="true">»</span><span class="sr-only">Next</span></a></li>
     </ul>
   </nav>
  </div>
</div>

<div class="container col-md-4" id="panel2">
  
  <h2>Create User Account</h2>

<form role="form">
  
  <div class="form-group col-md-12">
    <label>
      <input type="checkbox" checked> Active?
    </label>
  </div>
  
  <div class="form-group col-md-6">
    <label for="username">User Name</label>
    <input type="text" class="form-control" name="username" placeholder="username" required>
  </div>
  <div class="form-group col-md-6">
    <label for="password">Password</label>
    <input type="text" class="form-control" name="password" placeholder="password" required>
  </div>
  
  <div class="form-group col-md-4">
    <label for="fn">First Name</label>
    <input type="text" class="form-control" name="fn" placeholder="John" required>
  </div>
  <div class="form-group col-md-8">
    <label for="ln">Last Name</label>
    <input type="text" class="form-control" name="ln" placeholder="Doe" required>
  </div>
  
  <div class="form-group col-md-6">
    <label for="email">Email address</label>
    <input type="text" class="form-control" name="email" placeholder="[email protected]">
  </div>
  <div class="form-group col-md-6">
    <label for="phone">Phone Number <span class="small">(optional)</span></label>
    <input type="tel" class="form-control" name="phone" placeholder="205-555-1234">
  </div>
  
  <div class="form-group col-md-4">
    <label for="cus_no">Company Code</label>
    <!--<select id="cus_no" class="form-control">
      <option>Please select</option>
    </select>-->
    <input type="text" class="form-control text-uppercase" name="cus_no" placeholder="ABCDEF">
  </div>
  
  <div class="form-group col-md-8">
    <label for="access">Authorized to Access Order Status</label>
    <input type="text" class="form-control text-uppercase" name="cus_no" placeholder="ABCDEF, GHIJKL, *DC, *ALL">
  </div>

  <div class="form-group col-md-12">
    <label for="company">Company Name</label>
    <input type="text" id="company" class="form-control" placeholder="ACME Steel Company">
  </div>
  
  <div class="form-group col-md-6">
    <label for="osr">Outside Sales Representative</label>
    <select id="osr" class="form-control">
      <option disabled="disabled" selected="selected">Please select</option>
      <option>Lee Brown</option>
      <option>David Chenoweth</option>
      <option>Jim Ivy</option>
      <option>Tony Necastro</option>
    </select>
  </div>
  
  <div class="form-group col-md-6">
    <label for="isr">Inside Sales Representative</label>
    <select id="osr" class="form-control dropdown">
      <option disabled="disabled" selected="selected">Please select</option>
      <option>Larry Richardson</option>
      <option>Julie Carroll</option>
      <option>Steve English</option>
      <option>Matt Mitchell</option>
      <option>Linda Smith</option>
      <option>Stacey Turner</option>
    </select>
  </div>
  
  <!--<div class="dropdown">
    <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
      Dropdown
      <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
      <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
      <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li>
      <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
      <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
    </ul>
  </div>-->
  
  <div class="col-md-12 text-right">
    <button type="submit" class="btn btn-primary">Create Account</button>
    <button type="submit" class="btn btn-default">Cancel</button>
    <!--<button type="submit" class="btn btn-danger pull-right">Delete Account</button>-->
  </div>

</form>
  
</div>

<div class="container col-md-4" id="panel3">
  
  <h2>Manage User Account</h2>

<form role="form">
  
  <div class="form-group col-md-12">
    <label>
      <input type="checkbox" checked> Active?
    </label>
  </div>
  
  <div class="form-group col-md-6">
    <label for="username">User Name</label>
    <input type="text" class="form-control" name="username" placeholder="username" value="sherbert" required>
  </div>
  <div class="form-group col-md-6">
    <label for="password">Password</label>
    <input type="text" class="form-control" name="password" placeholder="password" value="[email protected]" required>
  </div>
  
  <div class="form-group col-md-4">
    <label for="fn">First Name</label>
    <input type="text" class="form-control" name="fn" placeholder="John" value="Stephanie" required>
  </div>
  <div class="form-group col-md-8">
    <label for="ln">Last Name</label>
    <input type="text" class="form-control" name="ln" placeholder="Doe" value="Herbert" required>
  </div>
  
  <div class="form-group col-md-6">
    <label for="email">Email address</label>
    <input type="text" class="form-control" name="email" value="[email protected]" placeholder="[email protected]">
  </div>
  <div class="form-group col-md-6">
    <label for="phone">Phone Number <span class="small">(optional)</span></label>
    <input type="tel" class="form-control" name="phone" placeholder="205-555-1234" value="517-787-5500">
  </div>
  
  <div class="form-group col-md-4">
    <label for="cus_no">Company Code</label>
    <!--<select id="cus_no" class="form-control">
      <option>Please select</option>
    </select>-->
    <input type="text" class="form-control text-uppercase" name="cus_no" placeholder="ABCDEF" value="ALRMET">
  </div>
  
  <div class="form-group col-md-8">
    <label for="access">Authorized to Access Order Status</label>
    <input type="text" class="form-control text-uppercase" name="cus_no" placeholder="ABCDEF, GHIJKL" value="ALRMET">
  </div>

  <div class="form-group col-md-12">
    <label for="company">Company Name</label>
    <input type="text" id="company" class="form-control" placeholder="ACME Steel Company" value="Alro Steel Corp.">
  </div>
  
  <div class="form-group col-md-6">
    <label for="osr">Outside Sales Representative</label>
    <select id="osr" class="form-control">
      <option disabled="disabled" >Please select</option>
      <option>Lee Brown</option>
      <option>David Chenoweth</option>
      <option>Jim Ivy</option>
      <option selected="selected">Dan Kraft</option>
      <option>Tony Necastro</option>
    </select>
  </div>
  
  <div class="form-group col-md-6">
    <label for="isr">Inside Sales Representative</label>
    <select id="osr" class="form-control dropdown">
      <option disabled="disabled">Please select</option>
      <option>Larry Richardson</option>
      <option>Julie Carroll</option>
      <option selected="selected">Steve English</option>
      <option>Matt Mitchell</option>
      <option>Linda Smith</option>
      <option>Stacey Turner</option>
    </select>
  </div>
  
  <!--<div class="dropdown">
    <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
      Dropdown
      <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
      <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
      <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li>
      <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
      <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
    </ul>
  </div>-->
  
  <div class="col-md-12 text-right">
    <button type="submit" class="btn btn-danger pull-left">Delete Account</button>
    <button type="submit" class="btn btn-primary">Update Account</button>
    <button type="submit" class="btn btn-default">Cancel</button>
    
  </div>

</form>
  
</div>
              
            
!

CSS

              
                h2 { 
  background-color: #d1d1d1;
  padding: 15px;
  margin-bottom: 1em;
}
.container { margin-top: 1em }
.navbar-form { padding: 0; margin-right: 1em }
.table { margin: 0 }
#newaccount { margin-top: 8px }

/*.pagination>.active>a, .pagination>.active>span, .pagination>.active>a:hover, .pagination>.active>span:hover, .pagination>.active>a:focus, .pagination>.active>span:focus {
  background-color: #066;
}*/

.table.table-bordered {
  padding: 1em;
}

.table-bordered th {
  cursor: pointer;
}

.table-bordered .caret {
  position: relative;
  top: 10px;
  right: 5px;
  float: right;
  /*color: #bfbfc1;*/
}

#demo {
  cursor: pointer;
}
              
            
!

JS

              
                $("#panel2").hide();
$("#panel3").hide();

$('#newaccount').click(function() {
  $("#panel1").hide();
  $("#panel2").show();
});

$('#demo').click(function() {
  $("#panel1").hide();
  $("#panel3").show();
});
              
            
!
999px

Console