How To Put fontawesome in placeholder. Here is my code:
<div class="form-group">
<input class="form-control" placeholder="username" id="inputdefault" type="text" />
<input class="form-control" placeholder="password" id="inputdefault" type="text" />
</div>
Try this way:
input {
padding:10px;
font-family: FontAwesome;
}
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<form role="form">
<div class="form-group">
<input type="text" class="form-control empty" id="iconified" placeholder="">
</div>
</form>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With