"Multiple Add-On Input Group"
Bootstrap 3.3.0 Snippet by alilishan

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="form-group"> <label for="">IP Address</label> <div class="input-group multi-control-group"> <input type="text" class="form-control"> <span class="input-group-addon">.</span> <input type="text" class="form-control"> <span class="input-group-addon">.</span> <input type="text" class="form-control"> <span class="input-group-addon">.</span> <input type="text" class="form-control"> </div> </div> <div class="form-group"> <label for="">IP Address</label> <div class="input-group multi-control-group"> <span class="input-group-addon first-addon">192</span> <span class="input-group-addon">.</span> <input type="text" class="form-control"> <span class="input-group-addon">.</span> <input type="text" class="form-control"> <span class="input-group-addon">.</span> <input type="text" class="form-control"> </div> </div> <div class="form-group"> <label for="">IP Address</label> <div class="input-group multi-control-group"> <span class="input-group-addon first-addon">192</span> <span class="input-group-addon">.</span> <input type="text" class="form-control"> <span class="input-group-addon">.</span> <input type="text" class="form-control"> <span class="input-group-addon last-addon">.</span> <span class="input-group-addon last-addon">255</span> </div> </div> </div>
.container { padding: 75px 0; width: 500px; } .multi-control-group .input-group-addon:not(.last-addon) { border-right-width: 0; } .multi-control-group .input-group-addon:not(.first-addon) { border-left-width: 0; } .multi-control-group .input-group-addon+.input-group-addon { border-left-width: 1px; }

Related: See More


Questions / Comments: