.input-group
must have a .form-control
and either an .input-group-addon
or an .input-group-btn
.
.input-group
s must contain at least two children, one of which must be a .form-control
and the other of which must be an .input-group-addon
or an .input-group-btn
. Otherwise, it doesn't make sense to even use an .input-group
.
Wrong:
<div class="input-group"> <input type="text" class="form-control" placeholder="Username"> </div>
Right:
<div class="input-group"> <span class="input-group-addon" id="basic-addon1">@</span> <input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1"> </div>
Also Right:
<div class="input-group"> <input type="text" class="form-control" placeholder="Search for..."> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4