how to correctly format this glyphicon button with input field using bootstrap -


i want add search button inside input field , did it.here current output.

enter image description here

i used class="btn btn-xs btn-danger to have button red background , white color symbol bootstrap danger buttons.but can see not doing it.

here code:

<div class="input-group">                          <span class="input-group-addon"><i class="glyphicon glyphicon-user"  aria-hidden="true"></i></span>    <input type="text" class="form-control" id="employeeid"  placeholder="enter id">     <span class="input-group-btn">    <button type="button" id="search" class="btn btn-xs btn-danger">    <span class="input-group-addon"><i class="glyphicon glyphicon-search "  aria-hidden="true"></i></span>    </button>       </span>                                  </div> 

so how can it.thanks

within <button>tag have 2 other tags, each own css. you'll need set background-color red, on <i> tag. tip above use developer tools idea show lot quicker background-color being set.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -