Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Put search Icon inside text box [duplicate]

I am trying place search icon inside text box.But,Its displaying end of the row.

<div class="row input-group">
    <input class="col-lg-3 col-md-3 col-sm-5 col-xs-5 form-control" type="text" id="searchroleName" placeholder="Search here"  aria-describedby="basic-addon2"/>
    <span class="input-group-addon fa fa-search"  id="basic-addon2"></span>
</div>

https://jsfiddle.net/9dxryetu/

Its displaying like this enter image description here

like image 276
user7397787 Avatar asked Dec 29 '25 05:12

user7397787


1 Answers

Just remove row class from input-group div, updated fiddle

like image 115
Super User Avatar answered Dec 30 '25 23:12

Super User



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!