css - Bootstrap 4 search input with an icon -


no clue how can this, since bs 4 doesn't support glyphicons. set background or apply different positioning font-awesome icon?

this code far:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoiresju2yc3z8gv/npezwav56rsmlldc3r/azzgrngxqqknkkofvhfqhnuweyj" crossorigin="anonymous">    <div class="form-group col-md-4">    <input class="form-control rounded-0 py-2" type="search" value="search" id="example-search-input">  </div>  <!-- /.form-group -->

i want use font-awesome icon. , i've tried adding background-image too, in:

.form-control {   background-image: url('https://res.cloudinary.com/dt9b7pad3/image/upload/v1502810110/angle-down-dark_dkyopo.png');   background-position: right center 5px; } 

but doesn't anything. way can think of add font-awesome icon , set positioning absolute, right? i'm not sure if that's 'clean' , correct way it? need take different approach this? help! thank you!

you can in way using input-group

<div class="input-group">   <input class="form-control"          placeholder="i can find want!">   <div class="input-group-addon" ><i class="fa fa-search"></i></div> </div> 

codeplay


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -