Add Font-awesome icon into input by CSS

Sometimes to make the gorgeous looking of form, we want to add font-awesome icons as placeholder. Most of us do not know how to add the font-awesome icons inside input.

There is a very easy and awesome way to add font-awesome icons into input as place holder.
I’m going to share now how to add font-awesome icons inside input. Before seeing the post, make sure that you properly integrated the font-awesome in your project.

After integrating font-awesome in your project now make the form as usual in your html file.

<div class="form-group">
<input type="#" placeholder="Search">
</div>

This is the html code.

Now add the code below in your CSS file,

.form-group ::-webkit-input-placeholder::before { font-family: fontAwesome; content:'\f002  '; color: #69f }
.form-group ::-moz-placeholder::before { font-family: fontAwesome; content:'\f002  '; color: #69f } /* firefox 19+ */
.form-group :-ms-input-placeholder::before { font-family: fontAwesome; content:'\f002  '; color: #69f } /* ie */
.form-group input:-o-placeholder::before { font-family: fontAwesome; content:'\f002  '; color: #69f } /*opera*/

The font-awesome placeholder will work properly by this code. You can add custom style of the placeholder here.

Enjoy Coding


21 Comments

  • House Extensions

    March 12, 2017

    Dead indited content material , thankyou for entropy.

    Reply
  • Our Web Site

    March 12, 2017

    Oh my goodness! Awesome article dude! Many thanks, However I am encountering issues with your RSS. I don’t know why I can’t join it. Is there anyone else having the same RSS issues? Anyone that knows the solution will you kindly respond? Thanks!!|

    Reply
  • Health Promotion

    March 12, 2017

    I truly appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You have made my day! Thank you again!

    Reply
  • Health & Fitness

    March 21, 2017

    You could certainly see your enthusiasm within the work you write. The arena hopes for even more passionate writers such as you who aren’t afraid to mention how they believe. At all times follow your heart.

    Reply
  • Business

    March 21, 2017

    Great weblog right here! Additionally your web site rather a lot up fast! What host are you the usage of? Can I am getting your associate hyperlink for your host? I wish my web site loaded up as fast as yours lol

    Reply
  • Pets

    March 21, 2017

    Generally I do not learn post on blogs, however I would like to say that this write-up very forced me to try and do so! Your writing taste has been amazed me. Thank you, quite great article.

    Reply
  • Health & Fitness

    March 21, 2017

    I have been surfing on-line more than 3 hours nowadays, yet I never discovered any fascinating article like yours. It¡¦s beautiful worth enough for me. In my opinion, if all website owners and bloggers made excellent content material as you probably did, the internet will be much more useful than ever before.

    Reply
  • General

    March 21, 2017

    I am not positive the place you’re getting your information, however great topic. I needs to spend a while learning much more or working out more. Thanks for great information I used to be searching for this info for my mission.

    Reply
  • Travel & Leisure

    March 21, 2017

    I have been absent for some time, but now I remember why I used to love this web site. Thanks , I¡¦ll try and check back more frequently. How frequently you update your web site?

    Reply
  • Health & Fitness

    March 21, 2017

    I in addition to my guys have been viewing the excellent thoughts on the blog then instantly I got a terrible feeling I had not expressed respect to the web blog owner for those strategies. Those ladies are actually as a result stimulated to read through them and have surely been tapping into them. I appreciate you for being considerably considerate and then for picking varieties of very good issues millions of individuals are really desirous to know about. My very own sincere regret for not expressing appreciation to earlier.

    Reply
  • Travel & Leisure

    March 21, 2017

    you are really a good webmaster. The web site loading speed is amazing. It seems that you’re doing any distinctive trick. Furthermore, The contents are masterpiece. you’ve performed a excellent process on this subject!

    Reply
  • Travel & Leisure

    March 21, 2017

    I¡¦ve been exploring for a little bit for any high quality articles or weblog posts on this sort of space . Exploring in Yahoo I at last stumbled upon this web site. Reading this info So i am satisfied to convey that I’ve an incredibly good uncanny feeling I found out just what I needed. I so much surely will make sure to don¡¦t disregard this web site and provides it a glance on a constant basis.

    Reply
  • Sports

    March 21, 2017

    You actually make it seem so easy with your presentation but I find this matter to be really something which I think I would never understand. It seems too complex and extremely broad for me. I’m looking forward for your next post, I will try to get the hang of it!

    Reply
  • Travel & Hotel

    March 21, 2017

    Thanks for any other informative web site. Where else may just I am getting that type of information written in such a perfect means? I have a mission that I’m just now operating on, and I have been on the glance out for such info.

    Reply
  • Law & Legal

    March 21, 2017

    I think this is among the most important information for me. And i am glad reading your article. But wanna remark on few general things, The site style is perfect, the articles is really nice : D. Good job, cheers

    Reply
  • Business

    March 21, 2017

    Wonderful goods from you, man. I’ve understand your stuff previous to and you are just extremely fantastic. I really like what you have acquired here, certainly like what you’re saying and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I can not wait to read far more from you. This is actually a great site.

    Reply
  • Pets

    March 22, 2017

    You are my inspiration , I have few blogs and infrequently run out from to brand.

    Reply
  • Read Significantly more

    March 22, 2017

    It’s an amazing article in favor of all the online users; they will take benefit from it I am sure.|

    Reply
  • automotive

    March 22, 2017

    Great ¡V I should certainly pronounce, impressed with your site. I had no trouble navigating through all the tabs as well as related information ended up being truly simple to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or anything, site theme . a tones way for your customer to communicate. Excellent task..

    Reply
  • automotive

    March 22, 2017

    I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here frequently. I’m quite sure I’ll learn a lot of new stuff right here! Best of luck for the next!

    Reply
  • medications

    May 7, 2017

    Helpful information. Lucky me I found your web site accidentally, annd I am shocked why this
    accident did not took place earlier! I bookmarked it.

    Reply

Leave a Reply