Input text ionicon
How do you put an ionicon inside of a text input field? Like a lil search magnifying glass in the search bar.
A :before call? A background image?
ionicon is used in the Ionic Framework and on their site you can find examples of using icons in textfields: http://ionicframework.com/docs/components/#input-icons they use <i class="icon ion-search placeholder-icon"></i> to add an icon inside a textfield.
I highly recommend checking out the (rest of the) framework
Oh I use ionic, but I also use ionicons in my website. It would be nice to be able to put them in the input fields there too. Just a thought.
On Mar 31, 2014, at 2:03 AM, Bram Slob [email protected] wrote:
ionicon is used in the Ionic Framework and on their site you can find examples of using icons in textfields: http://ionicframework.com/docs/components/#input-icons they use to add an icon inside a textfield.
I highly recommend checking out the (rest of the) framework
— Reply to this email directly or view it on GitHub.
You could use the same markup they use, with the <i>. You would only need to 'riep' the rest of the styling. But if you position the <i> absolute and give the input a left padding, you should be fine.
Good luck ;)
Yeah, I would say just take a look at how we do it on our docs. @bramslob's link is a good example, as is the search icon in the searchbox on http://ionicons.com
Thanks!